From e5f9b361d8b7262493d64fc7d53e93f4a5ca0aa4 Mon Sep 17 00:00:00 2001 From: cinadia Date: Tue, 28 May 2024 15:56:24 -0700 Subject: [PATCH] updates settings layouts in landscape --- .../main/res/layout-land/category_edit_button.xml | 14 ++++++++------ .../layout-land/fragment_edit_category_menu.xml | 4 ++++ app/src/main/res/values-land/dimens.xml | 2 +- app/src/main/res/values/dimens.xml | 3 ++- app/src/main/res/values/styles.xml | 1 - 5 files changed, 15 insertions(+), 9 deletions(-) diff --git a/app/src/main/res/layout-land/category_edit_button.xml b/app/src/main/res/layout-land/category_edit_button.xml index 5989b492..5d8f1e70 100644 --- a/app/src/main/res/layout-land/category_edit_button.xml +++ b/app/src/main/res/layout-land/category_edit_button.xml @@ -14,34 +14,35 @@ 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"/> + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintBottom_toBottomOf="parent"/> diff --git a/app/src/main/res/layout-land/fragment_edit_category_menu.xml b/app/src/main/res/layout-land/fragment_edit_category_menu.xml index 0e527292..70350911 100644 --- a/app/src/main/res/layout-land/fragment_edit_category_menu.xml +++ b/app/src/main/res/layout-land/fragment_edit_category_menu.xml @@ -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" /> diff --git a/app/src/main/res/values-land/dimens.xml b/app/src/main/res/values-land/dimens.xml index 72e50487..ec2aac93 100644 --- a/app/src/main/res/values-land/dimens.xml +++ b/app/src/main/res/values-land/dimens.xml @@ -27,7 +27,7 @@ 88dp - 16dp + 8dp 20dp 24dp 32dp diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml index e2f8e9d2..81bb147d 100644 --- a/app/src/main/res/values/dimens.xml +++ b/app/src/main/res/values/dimens.xml @@ -171,7 +171,7 @@ 32dp 64dp 24dp - 48dp + 36dp 8dp 88dp 8dp @@ -240,6 +240,7 @@ 0dp 5dp 20dp + 8dp 56dp diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 1fe1f2c3..0cc5c9b5 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -319,7 +319,6 @@ 1 1 @dimen/settings_option_button_margin - @dimen/settings_option_button_margin @drawable/button_default_background @drawable/arrow_right_32dp center_vertical