From f8816853d5269ac8e9277e88e760b81857c87c96 Mon Sep 17 00:00:00 2001 From: HeCodes2Much Date: Thu, 5 Sep 2024 13:31:38 +0100 Subject: [PATCH] Refactor: Cleaned up xml files formatting Signed-off-by: HeCodes2Much --- app/src/main/res/layout/activity_main.xml | 3 +- app/src/main/res/layout/activity_mock.xml | 1 - .../layout/bottom_sheet_alignment_dialog.xml | 32 +++++------ .../bottomsheetdialog_alignment_settings.xml | 29 +++++----- .../bottomsheetdialog_color_settings.xml | 56 +++++++++---------- .../bottomsheetdialog_padding_settings.xml | 4 +- .../bottomsheetdialog_text_settings.xml | 4 +- app/src/main/res/layout/fragment_draw.xml | 8 +-- app/src/main/res/layout/fragment_favorite.xml | 16 +++--- app/src/main/res/layout/fragment_hidden.xml | 16 +++--- app/src/main/res/layout/fragment_home.xml | 26 ++++----- .../res/layout/fragment_settings_widgets.xml | 54 +++++++++--------- app/src/main/res/layout/fragment_widgets.xml | 12 ++-- app/src/main/res/layout/item_draw.xml | 18 ++++-- app/src/main/res/layout/item_favorite.xml | 4 +- app/src/main/res/layout/item_hidden.xml | 10 ++-- .../main/res/layout/item_number_picker.xml | 4 +- 17 files changed, 151 insertions(+), 146 deletions(-) diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 5bd5d267..aeaffeec 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -1,6 +1,5 @@ - + android:background="@android:color/transparent"> + android:orientation="vertical"> + android:textSize="@dimen/text_super_large"> + android:textSize="@dimen/text_large"> + android:textSize="@dimen/text_large"> + android:textSize="@dimen/text_large"> diff --git a/app/src/main/res/layout/bottomsheetdialog_alignment_settings.xml b/app/src/main/res/layout/bottomsheetdialog_alignment_settings.xml index fc3c324d..4ea4193e 100644 --- a/app/src/main/res/layout/bottomsheetdialog_alignment_settings.xml +++ b/app/src/main/res/layout/bottomsheetdialog_alignment_settings.xml @@ -13,6 +13,7 @@ tools:ignore="MissingConstraints"> + app:layout_constraintTop_toTopOf="parent" /> + tools:ignore="RtlHardcoded" /> - + tools:ignore="RtlHardcoded" /> @@ -121,16 +120,16 @@ + tools:ignore="RtlHardcoded" /> @@ -157,16 +156,16 @@ + tools:ignore="RtlHardcoded" /> diff --git a/app/src/main/res/layout/bottomsheetdialog_color_settings.xml b/app/src/main/res/layout/bottomsheetdialog_color_settings.xml index f97690e5..2d4111c5 100644 --- a/app/src/main/res/layout/bottomsheetdialog_color_settings.xml +++ b/app/src/main/res/layout/bottomsheetdialog_color_settings.xml @@ -13,6 +13,7 @@ tools:ignore="MissingConstraints"> + app:layout_constraintTop_toTopOf="parent" /> + tools:ignore="RtlHardcoded" /> @@ -84,16 +84,16 @@ + tools:ignore="RtlHardcoded" /> @@ -120,16 +120,16 @@ + app:layout_constraintTop_toTopOf="parent" + tools:ignore="RtlHardcoded" /> @@ -156,16 +156,16 @@ + app:layout_constraintTop_toTopOf="parent" + tools:ignore="RtlHardcoded" /> @@ -192,16 +192,16 @@ + app:layout_constraintTop_toTopOf="parent" + tools:ignore="RtlHardcoded" /> @@ -228,16 +228,16 @@ + app:layout_constraintTop_toTopOf="parent" + tools:ignore="RtlHardcoded" /> @@ -264,16 +264,16 @@ + app:layout_constraintTop_toTopOf="parent" + tools:ignore="RtlHardcoded" /> diff --git a/app/src/main/res/layout/bottomsheetdialog_padding_settings.xml b/app/src/main/res/layout/bottomsheetdialog_padding_settings.xml index 35f96a40..c57bbc44 100644 --- a/app/src/main/res/layout/bottomsheetdialog_padding_settings.xml +++ b/app/src/main/res/layout/bottomsheetdialog_padding_settings.xml @@ -14,6 +14,7 @@ + app:layout_constraintTop_toTopOf="parent" /> + app:layout_constraintTop_toTopOf="parent" /> + android:orientation="vertical"> diff --git a/app/src/main/res/layout/fragment_favorite.xml b/app/src/main/res/layout/fragment_favorite.xml index 3f8ebe4e..ff8c54ca 100644 --- a/app/src/main/res/layout/fragment_favorite.xml +++ b/app/src/main/res/layout/fragment_favorite.xml @@ -2,32 +2,32 @@ + android:clickable="true" + android:focusable="true" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent"> + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" /> + android:clickable="true" + android:focusable="true" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent"> + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" /> + android:layout_height="match_parent" + android:layout_marginVertical="20dp" /> + android:scrollbars="none" + app:layout_behavior="@string/appbar_scrolling_view_behavior" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintTop_toTopOf="parent"> + android:textSize="16sp" /> + tools:text="02:34" /> + tools:text="Thu, 30 Dec" /> + android:layout_height="match_parent" + android:layout_marginVertical="20dp" /> + android:textSize="@dimen/text_super_large" /> + android:textSize="@dimen/text_super_large" /> + tools:ignore="RtlHardcoded" /> + tools:ignore="RtlHardcoded" /> + tools:ignore="RtlHardcoded" /> + tools:ignore="RtlHardcoded" /> @@ -165,6 +165,7 @@ tools:ignore="MissingConstraints"> + tools:ignore="RtlHardcoded" /> @@ -187,12 +187,12 @@ tools:ignore="MissingConstraints"> + android:textSize="@dimen/text_super_large" /> + tools:ignore="RtlHardcoded" /> + tools:ignore="RtlHardcoded" /> + tools:ignore="RtlHardcoded" /> @@ -270,6 +270,7 @@ tools:ignore="MissingConstraints"> + tools:ignore="RtlHardcoded" /> diff --git a/app/src/main/res/layout/fragment_widgets.xml b/app/src/main/res/layout/fragment_widgets.xml index 560e6421..6aeec28e 100644 --- a/app/src/main/res/layout/fragment_widgets.xml +++ b/app/src/main/res/layout/fragment_widgets.xml @@ -11,9 +11,9 @@ + android:layout_height="match_parent" + android:layout_marginVertical="20dp" /> + android:gravity="center_horizontal" + android:text="@string/sunrise_icon" /> @@ -218,8 +218,8 @@ android:id="@+id/sunset_text" android:layout_width="match_parent" android:layout_height="match_parent" - android:text="@string/sunset_icon" - android:gravity="center_horizontal" /> + android:gravity="center_horizontal" + android:text="@string/sunset_icon" /> diff --git a/app/src/main/res/layout/item_draw.xml b/app/src/main/res/layout/item_draw.xml index 6bc42189..b40fb134 100644 --- a/app/src/main/res/layout/item_draw.xml +++ b/app/src/main/res/layout/item_draw.xml @@ -1,9 +1,9 @@ + android:layout_height="wrap_content"> + + + android:gravity="center" + android:textSize="24sp" /> diff --git a/app/src/main/res/layout/item_favorite.xml b/app/src/main/res/layout/item_favorite.xml index 98a9edb8..d9897c79 100644 --- a/app/src/main/res/layout/item_favorite.xml +++ b/app/src/main/res/layout/item_favorite.xml @@ -24,6 +24,7 @@ + tools:ignore="RtlHardcoded" /> + android:layout_height="wrap_content"> + android:gravity="center" + android:textSize="24sp" /> diff --git a/app/src/main/res/layout/item_number_picker.xml b/app/src/main/res/layout/item_number_picker.xml index 333579a6..36137371 100644 --- a/app/src/main/res/layout/item_number_picker.xml +++ b/app/src/main/res/layout/item_number_picker.xml @@ -2,8 +2,8 @@ + android:gravity="center" + android:orientation="horizontal">