From 72002c13d6e37d073a33d0061045d0fafb323296 Mon Sep 17 00:00:00 2001 From: Andreas Date: Sun, 22 Aug 2021 01:09:19 +0200 Subject: [PATCH] Tweak MangaInfoHeader (#5766) Make margin between transparent toolbar and cover more match 1.x Fixes from when view was redone with MotionLayout --- app/src/main/res/layout/manga_info_header.xml | 8 ++++++-- app/src/main/res/xml/manga_info_header_scene.xml | 10 ---------- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/app/src/main/res/layout/manga_info_header.xml b/app/src/main/res/layout/manga_info_header.xml index 7d5616bca..4a286440b 100644 --- a/app/src/main/res/layout/manga_info_header.xml +++ b/app/src/main/res/layout/manga_info_header.xml @@ -12,7 +12,7 @@ android:id="@+id/backdrop" android:layout_width="0dp" android:layout_height="0dp" - android:layout_marginBottom="-8dp" + android:layout_marginBottom="-32dp" android:alpha="0.2" android:scaleType="centerCrop" app:layout_constraintBottom_toBottomOf="@+id/manga_cover" @@ -36,7 +36,7 @@ android:layout_width="100dp" android:layout_height="0dp" android:layout_marginStart="16dp" - android:layout_marginTop="8dp" + android:layout_marginTop="16dp" android:background="@drawable/rounded_rectangle" android:contentDescription="@string/description_cover" android:maxWidth="100dp" @@ -53,6 +53,7 @@ android:layout_height="wrap_content" android:layout_marginStart="16dp" android:layout_marginEnd="16dp" + android:layout_marginBottom="8dp" android:orientation="vertical" app:layout_constraintBottom_toBottomOf="@+id/manga_cover" app:layout_constraintEnd_toEndOf="parent" @@ -132,6 +133,9 @@ android:id="@+id/manga_actions" android:layout_width="0dp" android:layout_height="wrap_content" + android:layout_marginStart="16dp" + android:layout_marginTop="-24dp" + android:layout_marginEnd="16dp" android:orientation="horizontal" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" diff --git a/app/src/main/res/xml/manga_info_header_scene.xml b/app/src/main/res/xml/manga_info_header_scene.xml index a5a565295..53bb9d14f 100644 --- a/app/src/main/res/xml/manga_info_header_scene.xml +++ b/app/src/main/res/xml/manga_info_header_scene.xml @@ -15,20 +15,10 @@ android:id="@+id/manga_summary_section" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginTop="8dp" motion:layout_constraintEnd_toEndOf="parent" motion:layout_constraintStart_toStartOf="parent" motion:layout_constraintTop_toBottomOf="@id/manga_actions" motion:visibilityMode="ignore" /> -