115 lines
4.8 KiB
XML
115 lines
4.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
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:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp">
|
|
|
|
<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:focusable="true"
|
|
android:maxLines="2"
|
|
android:textIsSelectable="false"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
tools:text="Collapsed summary content Collapsed summary content Collapsed summary content Collapsed summary content Collapsed summary content Collapsed summary content" />
|
|
|
|
<View
|
|
android:id="@+id/manga_info_toggle_more_scrim"
|
|
android:layout_width="20dp"
|
|
android:layout_height="0dp"
|
|
android:background="@drawable/manga_info_more_gradient"
|
|
android:backgroundTint="?android:attr/colorBackground"
|
|
app:layout_constraintBottom_toBottomOf="@+id/manga_summary_text"
|
|
app:layout_constraintEnd_toStartOf="@id/manga_info_toggle_more"
|
|
app:layout_constraintTop_toTopOf="@+id/manga_info_toggle_more" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/manga_info_toggle_more"
|
|
style="@style/Widget.Tachiyomi.Button.InlineButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingStart="8dp"
|
|
android:paddingEnd="16dp"
|
|
android:text="@string/manga_info_expand"
|
|
android:textAlignment="viewEnd"
|
|
app:layout_constraintBottom_toBottomOf="@+id/manga_summary_text"
|
|
app:layout_constraintEnd_toEndOf="parent" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/manga_info_toggle_less"
|
|
style="@style/Widget.Tachiyomi.Button.InlineButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingStart="8dp"
|
|
android:paddingEnd="16dp"
|
|
android:text="@string/manga_info_collapse"
|
|
android:textAlignment="viewEnd"
|
|
android:visibility="gone"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/manga_summary_text" />
|
|
|
|
<HorizontalScrollView
|
|
android:id="@+id/manga_genres_tags_compact"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:requiresFadingEdge="horizontal"
|
|
android:scrollbars="none"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/manga_summary_text">
|
|
|
|
<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>
|
|
|
|
<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"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/manga_info_toggle_less" />
|
|
|
|
|
|
<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:listitem="@layout/manga_info_genre_grouping"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/manga_info_toggle_less"/>
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |