mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-11 19:00:49 +01:00
Fixes and Tweaks to Info Page (#1198)
* Fixes inorichi/tachiyomi#1194 by putting the name in a auto size * removed ellipsizing of title * moved the genre tags inside of the scroll view for inorichi/tachiyomi#1196 * saving my layout options for the night
This commit is contained in:
parent
af637a82c3
commit
233e76724a
2 changed files with 39 additions and 29 deletions
|
@ -65,11 +65,14 @@
|
||||||
style="@style/TextAppearance.Medium.Title"
|
style="@style/TextAppearance.Medium.Title"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:ellipsize="end"
|
|
||||||
android:maxLines="2"
|
android:maxLines="2"
|
||||||
android:textIsSelectable="false"
|
android:textIsSelectable="false"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
app:layout_constraintLeft_toLeftOf="parent"/>
|
app:layout_constraintLeft_toLeftOf="parent"
|
||||||
|
app:autoSizeTextType="uniform"
|
||||||
|
app:autoSizeMinTextSize="12sp"
|
||||||
|
app:autoSizeMaxTextSize="100sp"
|
||||||
|
app:autoSizeStepGranularity="2sp"/>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/manga_author_label"
|
android:id="@+id/manga_author_label"
|
||||||
|
|
|
@ -92,7 +92,12 @@
|
||||||
android:maxLines="2"
|
android:maxLines="2"
|
||||||
android:textIsSelectable="false"
|
android:textIsSelectable="false"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
app:layout_constraintLeft_toLeftOf="parent"/>
|
app:layout_constraintLeft_toLeftOf="parent"
|
||||||
|
app:autoSizeTextType="uniform"
|
||||||
|
app:autoSizeMinTextSize="12sp"
|
||||||
|
app:autoSizeMaxTextSize="100sp"
|
||||||
|
app:autoSizeStepGranularity="2sp"/>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/manga_author_label"
|
android:id="@+id/manga_author_label"
|
||||||
style="@style/TextAppearance.Medium.Body2"
|
style="@style/TextAppearance.Medium.Body2"
|
||||||
|
@ -104,7 +109,6 @@
|
||||||
app:layout_constraintTop_toBottomOf="@+id/manga_full_title"
|
app:layout_constraintTop_toBottomOf="@+id/manga_full_title"
|
||||||
app:layout_constraintLeft_toLeftOf="parent"/>
|
app:layout_constraintLeft_toLeftOf="parent"/>
|
||||||
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/manga_author"
|
android:id="@+id/manga_author"
|
||||||
style="@style/TextAppearance.Regular.Body1.Secondary"
|
style="@style/TextAppearance.Regular.Body1.Secondary"
|
||||||
|
@ -237,67 +241,70 @@
|
||||||
|
|
||||||
</android.support.v4.widget.NestedScrollView>
|
</android.support.v4.widget.NestedScrollView>
|
||||||
|
|
||||||
<android.support.v4.widget.NestedScrollView
|
<TextView
|
||||||
android:id="@+id/description_scrollview"
|
android:id="@+id/manga_summary_label"
|
||||||
android:layout_width="0dp"
|
style="@style/TextAppearance.Medium.Body2"
|
||||||
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginBottom="16dp"
|
|
||||||
android:layout_marginEnd="8dp"
|
|
||||||
android:layout_marginLeft="16dp"
|
android:layout_marginLeft="16dp"
|
||||||
android:layout_marginRight="16dp"
|
android:layout_marginRight="16dp"
|
||||||
android:layout_marginStart="8dp"
|
android:layout_marginStart="8dp"
|
||||||
android:layout_marginTop="8dp"
|
android:layout_marginTop="8dp"
|
||||||
|
android:text="@string/description"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/guideline"
|
||||||
app:layout_constraintLeft_toLeftOf="parent"
|
app:layout_constraintLeft_toLeftOf="parent"
|
||||||
app:layout_constraintRight_toRightOf="parent"
|
app:layout_constraintRight_toRightOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/guideline">
|
android:textIsSelectable="false"/>
|
||||||
|
|
||||||
|
<android.support.v4.widget.NestedScrollView
|
||||||
|
android:id="@+id/description_scrollview"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="0dp"
|
||||||
|
app:layout_constraintHeight_default="spread"
|
||||||
|
android:layout_marginEnd="8dp"
|
||||||
|
app:layout_constraintLeft_toLeftOf="parent"
|
||||||
|
app:layout_constraintRight_toRightOf="parent"
|
||||||
|
app:layout_constraintTop_toBottomOf="@id/manga_summary_label"
|
||||||
|
app:layout_constraintBottom_toTopOf="@id/manga_genres_tags"
|
||||||
|
>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="0dp"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/manga_summary_label"
|
|
||||||
style="@style/TextAppearance.Medium.Body2"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="@string/description"
|
|
||||||
android:textIsSelectable="false"/>
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/manga_summary"
|
android:id="@+id/manga_summary"
|
||||||
style="@style/TextAppearance.Regular.Body1.Secondary"
|
style="@style/TextAppearance.Regular.Body1.Secondary"
|
||||||
|
android:layout_marginLeft="16dp"
|
||||||
|
android:layout_marginRight="16dp"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:textIsSelectable="false"/>
|
android:textIsSelectable="false"/>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
</android.support.v4.widget.NestedScrollView>
|
</android.support.v4.widget.NestedScrollView>
|
||||||
|
|
||||||
<me.gujun.android.taggroup.TagGroup
|
<me.gujun.android.taggroup.TagGroup
|
||||||
android:id="@+id/manga_genres_tags"
|
android:id="@+id/manga_genres_tags"
|
||||||
style="@style/TagGroup"
|
style="@style/TagGroup"
|
||||||
android:layout_width="0dp"
|
app:layout_constraintHeight_default="spread"
|
||||||
android:layout_height="0dp"
|
app:layout_constraintWidth_default="spread"
|
||||||
android:layout_marginBottom="16dp"
|
|
||||||
android:layout_marginEnd="8dp"
|
android:layout_marginEnd="8dp"
|
||||||
|
android:layout_marginStart="8dp"
|
||||||
|
android:layout_marginTop="8dp"
|
||||||
android:layout_marginLeft="16dp"
|
android:layout_marginLeft="16dp"
|
||||||
android:layout_marginRight="16dp"
|
android:layout_marginRight="16dp"
|
||||||
android:layout_marginStart="8dp"
|
android:layout_marginBottom="8dp"
|
||||||
android:layout_marginTop="16dp"
|
|
||||||
android:orientation="vertical"
|
|
||||||
app:layout_constraintLeft_toLeftOf="parent"
|
app:layout_constraintLeft_toLeftOf="parent"
|
||||||
app:layout_constraintRight_toRightOf="parent"
|
app:layout_constraintRight_toRightOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/description_scrollview"
|
app:layout_constraintTop_toBottomOf="@id/description_scrollview"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
|
||||||
app:atg_borderStrokeWidth="1dp"
|
app:atg_borderStrokeWidth="1dp"
|
||||||
app:atg_backgroundColor="@android:color/transparent"
|
app:atg_backgroundColor="@android:color/transparent"
|
||||||
app:atg_borderColor="@color/md_blue_A400"
|
app:atg_borderColor="@color/md_blue_A400"
|
||||||
app:atg_textColor="@color/md_blue_A400"
|
app:atg_textColor="@color/md_blue_A400"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|
||||||
</android.support.constraint.ConstraintLayout>
|
</android.support.constraint.ConstraintLayout>
|
||||||
|
|
||||||
</android.support.v4.widget.SwipeRefreshLayout>
|
</android.support.v4.widget.SwipeRefreshLayout>
|
||||||
|
|
Loading…
Reference in a new issue