(cherry picked from commit e990ad25eb80317b915abc042fdc3085da070e84) # Conflicts: # app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoHeaderAdapter.kt # app/src/main/res/layout/manga_info_header.xml
110 lines
No EOL
4.2 KiB
XML
110 lines
No EOL
4.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout
|
|
android:id="@+id/manga_summary_section"
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:orientation="vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/selectableItemBackground">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingStart="16dp"
|
|
android:paddingEnd="16dp">
|
|
|
|
<TextView
|
|
android:id="@+id/manga_summary_label"
|
|
style="@style/TextAppearance.Regular.SubHeading"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerVertical="true"
|
|
android:text="@string/manga_info_about_label"
|
|
android:textIsSelectable="false"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toStartOf="@+id/manga_info_toggle"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/manga_info_toggle"
|
|
style="@style/Theme.Widget.Button.Icon"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentEnd="true"
|
|
android:text="@string/manga_info_expand"
|
|
app:icon="@drawable/ic_baseline_expand_more_24dp"
|
|
app:iconTint="?attr/colorOnPrimary"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/manga_summary_text"
|
|
style="@style/TextAppearance.Regular.Body1.Secondary"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="16dp"
|
|
android:layout_marginEnd="16dp"
|
|
android:clickable="true"
|
|
android:ellipsize="end"
|
|
android:focusable="true"
|
|
android:maxLines="2"
|
|
android:textIsSelectable="false"
|
|
tools:text="Summary" />
|
|
|
|
<FrameLayout
|
|
android:id="@+id/manga_genres_tags_wrapper"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<com.google.android.material.chip.ChipGroup
|
|
android:id="@+id/manga_genres_tags_full_chips"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="16dp"
|
|
android:layout_marginEnd="16dp"
|
|
android:paddingTop="8dp"
|
|
android:paddingBottom="8dp"
|
|
android:visibility="gone"
|
|
app:chipSpacingHorizontal="4dp" />
|
|
|
|
<HorizontalScrollView
|
|
android:id="@+id/manga_genres_tags_compact"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:requiresFadingEdge="horizontal">
|
|
|
|
<com.google.android.material.chip.ChipGroup
|
|
android:id="@+id/manga_genres_tags_compact_chips"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingStart="16dp"
|
|
android:paddingTop="8dp"
|
|
android:paddingEnd="16dp"
|
|
android:paddingBottom="8dp"
|
|
app:chipSpacingHorizontal="4dp"
|
|
app:singleLine="true" />
|
|
|
|
</HorizontalScrollView>
|
|
|
|
</FrameLayout>
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/genre_groups"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="16dp"
|
|
android:layout_marginEnd="16dp"
|
|
android:paddingTop="8dp"
|
|
android:paddingBottom="8dp"
|
|
android:visibility="gone"
|
|
tools:visibility="visible"
|
|
tools:listitem="@layout/manga_info_genre_grouping" />
|
|
|
|
|
|
</LinearLayout> |