From b75c9ea525d46ed2d11856697bccda4119bfd669 Mon Sep 17 00:00:00 2001 From: ishant904 <52167192+ishant904@users.noreply.github.com> Date: Tue, 12 Apr 2022 21:45:38 +0530 Subject: [PATCH] Fix #3585: Merge topic_practice_header_view.xml into single xml file. (#4159) * Deleted topic_practice_header landscape for mobile and tablet * added margin end in topic_practice_header for rtl support * Adding constraint layout as parent in phone xml to match the tablet layout * Adding constraint layout as parent in phone xml to match the tablet layout * extract dimens resources in phone and tablet layout * extract layout width from phone and tablet layout * merge topic_practice_header_view into one xml Co-authored-by: ishant904 --- .../topic_practice_header_view.xml | 36 --------------- .../topic_practice_header_view.xml | 40 ----------------- .../topic_practice_header_view.xml | 40 ----------------- .../res/layout/topic_practice_header_view.xml | 44 +++++++++++-------- app/src/main/res/values-land/dimens.xml | 6 +++ .../main/res/values-sw600dp-land/dimens.xml | 12 +++++ .../main/res/values-sw600dp-port/dimens.xml | 12 +++++ app/src/main/res/values/dimens.xml | 8 ++++ 8 files changed, 64 insertions(+), 134 deletions(-) delete mode 100644 app/src/main/res/layout-land/topic_practice_header_view.xml delete mode 100644 app/src/main/res/layout-sw600dp-land/topic_practice_header_view.xml delete mode 100644 app/src/main/res/layout-sw600dp-port/topic_practice_header_view.xml diff --git a/app/src/main/res/layout-land/topic_practice_header_view.xml b/app/src/main/res/layout-land/topic_practice_header_view.xml deleted file mode 100644 index 3e3e7c76fbf..00000000000 --- a/app/src/main/res/layout-land/topic_practice_header_view.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/app/src/main/res/layout-sw600dp-land/topic_practice_header_view.xml b/app/src/main/res/layout-sw600dp-land/topic_practice_header_view.xml deleted file mode 100644 index b904eba394a..00000000000 --- a/app/src/main/res/layout-sw600dp-land/topic_practice_header_view.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/app/src/main/res/layout-sw600dp-port/topic_practice_header_view.xml b/app/src/main/res/layout-sw600dp-port/topic_practice_header_view.xml deleted file mode 100644 index b904eba394a..00000000000 --- a/app/src/main/res/layout-sw600dp-port/topic_practice_header_view.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/app/src/main/res/layout/topic_practice_header_view.xml b/app/src/main/res/layout/topic_practice_header_view.xml index 5abb7b53db8..419b8c469d1 100644 --- a/app/src/main/res/layout/topic_practice_header_view.xml +++ b/app/src/main/res/layout/topic_practice_header_view.xml @@ -12,26 +12,34 @@ + android:layout_marginTop="@dimen/topic_practice_header_parent_constraint_layout_margin_top" + android:paddingBottom="@dimen/topic_practice_header_parent_constraint_layout_padding_bottom"> - + 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 52554e5370b..f5f409cedb1 100644 --- a/app/src/main/res/values-land/dimens.xml +++ b/app/src/main/res/values-land/dimens.xml @@ -431,6 +431,12 @@ 100dp 100dp + + 96dp + 32dp + 96dp + 24dp + 16dp 16dp diff --git a/app/src/main/res/values-sw600dp-land/dimens.xml b/app/src/main/res/values-sw600dp-land/dimens.xml index eeb761e161c..c817c64db5e 100644 --- a/app/src/main/res/values-sw600dp-land/dimens.xml +++ b/app/src/main/res/values-sw600dp-land/dimens.xml @@ -443,6 +443,18 @@ 16dp 4dp + + 32dp + 20dp + 0dp + 0dp + 0dp + 360dp + + + 16dp + 16dp + 16dp 16dp diff --git a/app/src/main/res/values-sw600dp-port/dimens.xml b/app/src/main/res/values-sw600dp-port/dimens.xml index 39ff2d3863a..c2167fa6646 100644 --- a/app/src/main/res/values-sw600dp-port/dimens.xml +++ b/app/src/main/res/values-sw600dp-port/dimens.xml @@ -442,6 +442,18 @@ 16dp 4dp + + 32dp + 20dp + 0dp + 0dp + 0dp + 360dp + + + 16dp + 16dp + 16dp 16dp diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml index 117fa5271d3..3deaa804156 100644 --- a/app/src/main/res/values/dimens.xml +++ b/app/src/main/res/values/dimens.xml @@ -632,6 +632,14 @@ 32dp 32dp + + 32dp + 32dp + 24dp + 24dp + 88dp + 0dp + 8dp 8dp