From 3a42196e3a95bcab8d58edcfc9b2627151bc5d46 Mon Sep 17 00:00:00 2001 From: Mostafa Date: Mon, 14 Oct 2024 21:11:08 +0300 Subject: [PATCH] Add layout margin to improve spacing for best visualizing --- app/src/main/res/layout/card_view_text.xml | 2 +- .../main/res/layout/card_view_with_image.xml | 2 +- .../main/res/layout/card_view_with_switch.xml | 5 +- app/src/main/res/layout/fragment_about.xml | 122 +++++++++--------- .../res/layout/fragment_language_settings.xml | 24 ++-- app/src/main/res/layout/fragment_main.xml | 82 ++++++++---- .../res/layout/fragment_privacy_policy.xml | 4 +- app/src/main/res/layout/fragment_settings.xml | 3 +- .../main/res/layout/fragment_third_party.xml | 3 +- .../res/layout/fragment_wikimedia_scribe.xml | 4 +- 10 files changed, 142 insertions(+), 109 deletions(-) diff --git a/app/src/main/res/layout/card_view_text.xml b/app/src/main/res/layout/card_view_text.xml index e517b7c6..4948c63e 100644 --- a/app/src/main/res/layout/card_view_text.xml +++ b/app/src/main/res/layout/card_view_text.xml @@ -8,7 +8,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" - android:padding="12dp"> + android:padding="14dp"> + android:padding="16dp"> + android:padding="14dp"> - + + - - + android:layout_marginStart="8dp" + android:layout_marginEnd="8dp" + android:background="@drawable/rounded_all_corners" + android:layout_marginTop="10dp" /> - + - + - + - - - + + + diff --git a/app/src/main/res/layout/fragment_language_settings.xml b/app/src/main/res/layout/fragment_language_settings.xml index 6fd30a2b..a3016169 100644 --- a/app/src/main/res/layout/fragment_language_settings.xml +++ b/app/src/main/res/layout/fragment_language_settings.xml @@ -11,8 +11,9 @@ android:id="@+id/functionalitySettingsTitle" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:text="@string/app.settings.keyboard.functionality.title" android:layout_marginStart="3dp" + android:layout_marginTop="8dp" + android:text="@string/app.settings.keyboard.functionality.title" android:textColor="@color/app_text_color" android:textSize="20sp" android:textStyle="bold" @@ -27,46 +28,45 @@ android:id="@+id/functionalityRecyclerView" android:layout_width="0dp" android:layout_height="wrap_content" - android:layout_marginTop="50dp" - android:padding="12dp" android:layout_marginStart="8dp" android:layout_marginEnd="8dp" + android:padding="12dp" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_bias="0.0" app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toTopOf="parent" /> + app:layout_constraintTop_toBottomOf="@+id/functionalitySettingsTitle" /> - - + app:layout_constraintTop_toBottomOf="@+id/layoutSettingsTitle" /> diff --git a/app/src/main/res/layout/fragment_main.xml b/app/src/main/res/layout/fragment_main.xml index e4cd4ec2..c0d7a15f 100644 --- a/app/src/main/res/layout/fragment_main.xml +++ b/app/src/main/res/layout/fragment_main.xml @@ -1,30 +1,32 @@ - + + + + + + android:orientation="horizontal" + android:paddingTop="4dp"> + + + android:textSize="16sp" + android:textStyle="bold" /> + + android:orientation="horizontal" + android:paddingTop="8dp"> + + + + android:orientation="horizontal" + android:paddingTop="8dp"> + + + + + + + + + + + + android:textSize="18sp" + android:textStyle="bold" /> + + + + + + app:strokeWidth="@dimen/tiny_margin"> + + android:textStyle="bold" /> diff --git a/app/src/main/res/layout/fragment_privacy_policy.xml b/app/src/main/res/layout/fragment_privacy_policy.xml index 488959a0..5338b53d 100644 --- a/app/src/main/res/layout/fragment_privacy_policy.xml +++ b/app/src/main/res/layout/fragment_privacy_policy.xml @@ -15,6 +15,7 @@ android:id="@+id/textView" android:layout_width="303dp" android:layout_height="wrap_content" + android:layout_marginTop="24dp" android:layout_marginStart="18dp" android:text="@string/app.about.legal.privacy_policy.caption" android:layout_marginEnd="16dp" @@ -31,7 +32,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginStart="16dp" - android:layout_marginTop="16dp" + android:layout_marginTop="4dp" android:layout_marginEnd="10dp" android:layout_marginBottom="16dp" android:background="@color/card_view_color" @@ -80,4 +81,3 @@ - diff --git a/app/src/main/res/layout/fragment_settings.xml b/app/src/main/res/layout/fragment_settings.xml index 69917089..74f5c256 100644 --- a/app/src/main/res/layout/fragment_settings.xml +++ b/app/src/main/res/layout/fragment_settings.xml @@ -15,6 +15,7 @@ android:orientation="vertical"> -