Skip to content

Commit

Permalink
Merge pull request #537 from cinadia/380-individual-category-padding-…
Browse files Browse the repository at this point in the history
…match-parent

Updates settings layouts in landscape
  • Loading branch information
cinadia authored Jun 4, 2024
2 parents 97e88ce + e5f9b36 commit 34ecbdf
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 9 deletions.
14 changes: 8 additions & 6 deletions app/src/main/res/layout-land/category_edit_button.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,41 +14,43 @@
android:id="@+id/individual_edit_category_button"
style="@style/IndividualCategoryEditButton"
android:layout_width="0dp"
android:layout_height="@dimen/settings_edit_individual_category_arrow_height"
android:layout_height="0dp"
android:paddingStart="@dimen/edit_individual_category_padding_start"
android:paddingEnd="@dimen/edit_individual_category_padding_end"
android:padding="@dimen/edit_individual_category_padding"
android:layout_marginStart="@dimen/settings_option_button_margin"
android:layout_marginTop="@dimen/settings_edit_individual_category_arrow_top"
android:text="@string/settings"
android:textStyle="bold"
app:layout_constraintStart_toEndOf="@+id/move_category_down_button"
app:layout_constraintEnd_toEndOf="@id/category_container"
app:layout_constraintTop_toTopOf="parent"/>
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"/>

<com.willowtree.vocable.customviews.VocableImageButton
android:id="@+id/move_category_up_button"
android:layout_width="@dimen/settings_edit_individual_category_arrow_width"
android:layout_height="@dimen/settings_edit_individual_category_arrow_height"
android:layout_height="0dp"
android:layout_marginTop="@dimen/settings_edit_individual_category_arrow_top"
android:padding="@dimen/settings_edit_individual_category_arrow_padding"
android:scaleType="centerInside"
android:background="@drawable/button_default_background"
android:src="@drawable/ic_up_arrow"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"/>
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"/>

<com.willowtree.vocable.customviews.VocableImageButton
android:id="@+id/move_category_down_button"
android:layout_width="@dimen/settings_edit_individual_category_arrow_width"
android:layout_height="@dimen/settings_edit_individual_category_arrow_height"
android:layout_height="0dp"
android:layout_marginTop="@dimen/settings_edit_individual_category_arrow_top"
android:layout_marginStart="@dimen/settings_edit_individual_category_arrow_top"
android:background="@drawable/button_default_background"
android:src="@drawable/ic_down_arrow"
android:padding="@dimen/settings_edit_individual_category_arrow_padding"
android:scaleType="centerInside"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toEndOf="@id/move_category_up_button" />

</androidx.constraintlayout.widget.ConstraintLayout>
4 changes: 4 additions & 0 deletions app/src/main/res/layout-land/fragment_edit_category_menu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@
android:id="@+id/show_category_switch"
android:layout_rowWeight="1"
android:layout_columnWeight="1"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginTop="@dimen/edit_individual_category_menu_margin"
android:layout_marginEnd="@dimen/edit_individual_category_menu_margin"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-land/dimens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<dimen name="edit_action_delete_width">88dp</dimen>

<!-- Settings Options -->
<dimen name="settings_options_margin_bottom">16dp</dimen>
<dimen name="settings_options_margin_bottom">8dp</dimen>
<dimen name="settings_link_button_bottom_margin">20dp</dimen>
<dimen name="settings_options_margin_top">24dp</dimen>
<dimen name="settings_version_text_bottom_margin">32dp</dimen>
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/values/dimens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@
<dimen name="settings_options_margin_top">32dp</dimen>
<dimen name="settings_options_margin_bottom">64dp</dimen>
<dimen name="setting_options_margin_horizontal">24dp</dimen>
<dimen name="settings_link_button_height">48dp</dimen>
<dimen name="settings_link_button_height">36dp</dimen>
<dimen name="settings_link_button_end_margin">8dp</dimen>
<dimen name="settings_link_button_bottom_margin">88dp</dimen>
<dimen name="settings_link_button_padding">8dp</dimen>
Expand Down Expand Up @@ -240,6 +240,7 @@
<dimen name="edit_individual_category_padding_end">0dp</dimen>
<dimen name="edit_individual_category_padding">5dp</dimen>
<dimen name="edit_individual_category_margin_top">20dp</dimen>
<dimen name="edit_individual_category_menu_margin">8dp</dimen>

<!-- Edit Categories List -->
<dimen name="edit_categories_list_button_width">56dp</dimen>
Expand Down
1 change: 0 additions & 1 deletion app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,6 @@
<item name="android:layout_rowWeight">1</item>
<item name="android:layout_columnWeight">1</item>
<item name="android:layout_marginEnd">@dimen/settings_option_button_margin</item>
<item name="android:layout_marginBottom">@dimen/settings_option_button_margin</item>
<item name="android:background">@drawable/button_default_background</item>
<item name="android:drawableEnd">@drawable/arrow_right_32dp</item>
<item name="android:gravity">center_vertical</item>
Expand Down

0 comments on commit 34ecbdf

Please sign in to comment.