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_height="wrap_content"
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">
<ImageView
@ -19,7 +19,8 @@
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:background="@mipmap/ic_launcher" />
tools:background="@mipmap/ic_launcher"
tools:ignore="ContentDescription" />
<View
android:id="@+id/backdrop_overlay"
@ -68,15 +69,9 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="4dp"
android:gravity="bottom"
android:maxLines="3"
android:gravity="center"
android:text="@string/manga_info_full_title_label"
android:textAlignment="center"
android:textIsSelectable="false"
app:autoSizeMaxTextSize="20sp"
app:autoSizeMinTextSize="12sp"
app:autoSizeStepGranularity="2sp"
app:autoSizeTextType="uniform" />
android:textIsSelectable="false" />
<TextView
android:id="@+id/manga_author"

View file

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

View file

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