From 59aef13200c8839a92be7eb40cd6b4401f4b6353 Mon Sep 17 00:00:00 2001 From: Soitora Date: Tue, 31 Aug 2021 23:53:37 +0200 Subject: [PATCH] Improve placement of manga title section (#5796) Also makes content expand logically through the help of constraint barriers. --- app/src/main/res/layout/manga_info_header.xml | 33 ++++++++++++++----- 1 file changed, 25 insertions(+), 8 deletions(-) diff --git a/app/src/main/res/layout/manga_info_header.xml b/app/src/main/res/layout/manga_info_header.xml index c37060b1b..3e4841a1a 100644 --- a/app/src/main/res/layout/manga_info_header.xml +++ b/app/src/main/res/layout/manga_info_header.xml @@ -30,6 +30,15 @@ app:layout_constraintBottom_toBottomOf="@+id/backdrop" app:layout_constraintTop_toTopOf="parent" /> + + @@ -62,11 +72,9 @@ android:id="@+id/manga_full_title" style="@style/TextAppearance.Medium.Title" android:layout_width="match_parent" - android:layout_height="60sp" - android:layout_marginBottom="4dp" - android:gravity="bottom" - android:text="@string/manga_info_full_title_label" + android:layout_height="wrap_content" android:textIsSelectable="false" + android:text="@string/manga_info_full_title_label" app:autoSizeMaxTextSize="20sp" app:autoSizeMinTextSize="12sp" app:autoSizeStepGranularity="2sp" @@ -77,6 +85,7 @@ style="@style/TextAppearance.Regular.Body1.Secondary.Bold" android:layout_width="wrap_content" android:layout_height="wrap_content" + android:layout_marginTop="4dp" android:textIsSelectable="false" tools:text="Author" /> @@ -85,6 +94,7 @@ style="@style/TextAppearance.Regular.Body1.Secondary.Bold" android:layout_width="wrap_content" android:layout_height="wrap_content" + android:layout_marginTop="2dp" android:textIsSelectable="false" tools:text="Artist" /> @@ -128,17 +138,24 @@ + + + app:layout_constraintTop_toBottomOf="@id/manga_info_barrier">