Remove autosizing for manga title in tablet view, fix centering

This commit is contained in:
arkon 2021-08-06 14:18:37 -04:00
parent 4d92caacef
commit 478256d766
4 changed files with 8 additions and 12 deletions

View file

@ -5,7 +5,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical" android:orientation="vertical"
app:layoutDescription="@xml/manga_info_header_scene_sw600dp" app:layoutDescription="@xml/manga_info_header_scene_sw720dp"
tools:context=".ui.browse.source.browse.BrowseSourceController"> tools:context=".ui.browse.source.browse.BrowseSourceController">
<ImageView <ImageView
@ -19,7 +19,8 @@
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
tools:background="@mipmap/ic_launcher" /> tools:background="@mipmap/ic_launcher"
tools:ignore="ContentDescription" />
<View <View
android:id="@+id/backdrop_overlay" android:id="@+id/backdrop_overlay"
@ -68,15 +69,9 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="4dp" android:layout_marginBottom="4dp"
android:gravity="bottom" android:gravity="center"
android:maxLines="3"
android:text="@string/manga_info_full_title_label" android:text="@string/manga_info_full_title_label"
android:textAlignment="center" android:textIsSelectable="false" />
android:textIsSelectable="false"
app:autoSizeMaxTextSize="20sp"
app:autoSizeMinTextSize="12sp"
app:autoSizeStepGranularity="2sp"
app:autoSizeTextType="uniform" />
<TextView <TextView
android:id="@+id/manga_author" android:id="@+id/manga_author"

View file

@ -19,7 +19,8 @@
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
tools:background="@mipmap/ic_launcher" /> tools:background="@mipmap/ic_launcher"
tools:ignore="ContentDescription" />
<View <View
android:id="@+id/backdrop_overlay" android:id="@+id/backdrop_overlay"

View file

@ -112,7 +112,7 @@
</style> </style>
<style name="TextAppearance.Medium.Title"> <style name="TextAppearance.Medium.Title">
<item name="android:textSize">24sp</item> <item name="android:textSize">20sp</item>
</style> </style>
<style name="TextAppearance.Medium.Body2"> <style name="TextAppearance.Medium.Body2">