From d9614923804b1fab06a10e592b2f48d2aca825a9 Mon Sep 17 00:00:00 2001 From: Andreas Date: Wed, 9 Jun 2021 23:14:57 +0200 Subject: [PATCH] Add back missing start/end margins in manga info header (#5352) * Add missing margin to phone UI Also, remove unnecessary code * Add missing margin to tablet UI * Use LinearLayout instead --- .../res/layout-sw720dp/manga_info_header.xml | 78 ++++++++++--------- app/src/main/res/layout/manga_info_header.xml | 77 +++++++++--------- .../main/res/xml/manga_info_header_scene.xml | 55 ++++++------- .../xml/manga_info_header_scene_sw600dp.xml | 4 +- 4 files changed, 107 insertions(+), 107 deletions(-) diff --git a/app/src/main/res/layout-sw720dp/manga_info_header.xml b/app/src/main/res/layout-sw720dp/manga_info_header.xml index 299529ef1d..3be161c59a 100644 --- a/app/src/main/res/layout-sw720dp/manga_info_header.xml +++ b/app/src/main/res/layout-sw720dp/manga_info_header.xml @@ -135,46 +135,50 @@ - - - - - + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/manga_detail"> + + + + + + + + + app:layout_constraintTop_toBottomOf="@id/manga_actions"> - - - - - + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/backdrop"> + + + + + + + + + app:layout_constraintTop_toBottomOf="@+id/manga_actions"> - - + @@ -68,14 +59,6 @@ motion:layout_constraintEnd_toEndOf="parent" motion:layout_constraintStart_toStartOf="parent" motion:layout_constraintTop_toTopOf="parent" /> - + motion:layout_constraintTop_toBottomOf="@id/manga_detail" + android:layout_marginStart="16dp" /> + motion:visibilityMode="ignore" + android:layout_marginEnd="16dp" /> + diff --git a/app/src/main/res/xml/manga_info_header_scene_sw600dp.xml b/app/src/main/res/xml/manga_info_header_scene_sw600dp.xml index f05cd8c4e9..21cf8706f2 100644 --- a/app/src/main/res/xml/manga_info_header_scene_sw600dp.xml +++ b/app/src/main/res/xml/manga_info_header_scene_sw600dp.xml @@ -18,7 +18,7 @@ android:layout_marginTop="8dp" motion:layout_constraintEnd_toEndOf="parent" motion:layout_constraintStart_toStartOf="parent" - motion:layout_constraintTop_toBottomOf="@+id/btn_favorite" + motion:layout_constraintTop_toBottomOf="@id/manga_actions" motion:visibilityMode="ignore" /> @@ -31,7 +31,7 @@ android:layout_marginTop="8dp" motion:layout_constraintEnd_toEndOf="parent" motion:layout_constraintStart_toStartOf="parent" - motion:layout_constraintTop_toBottomOf="@id/btn_favorite" + motion:layout_constraintTop_toBottomOf="@id/manga_actions" motion:visibilityMode="ignore" />