mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-16 06:39:22 +01:00
156 lines
6.7 KiB
XML
156 lines
6.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<FrameLayout 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:id="@+id/manga_layout"
|
|
android:layout_width="match_parent"
|
|
tools:background="?android:attr/colorBackground"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/constraint_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom"
|
|
android:background="@drawable/library_compact_grid_selector"
|
|
android:orientation="vertical">
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
android:id="@+id/card"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom"
|
|
android:layout_marginStart="10dp"
|
|
android:layout_marginTop="10dp"
|
|
android:layout_marginEnd="10dp"
|
|
app:layout_constraintBottom_toTopOf="@+id/text_layout"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintVertical_bias="1.0">
|
|
|
|
<ImageView
|
|
android:id="@+id/cover_thumbnail"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:adjustViewBounds="true"
|
|
android:background="?android:attr/colorBackground"
|
|
android:maxHeight="250dp"
|
|
tools:background="?android:attr/colorBackground"
|
|
tools:ignore="ContentDescription"
|
|
tools:src="@mipmap/ic_launcher" />
|
|
|
|
<FrameLayout
|
|
android:id="@+id/play_layout"
|
|
android:layout_width="50dp"
|
|
android:layout_height="50dp"
|
|
android:layout_gravity="end"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:visibility="gone"
|
|
tools:visibility="visible">
|
|
|
|
<ImageView
|
|
android:id="@+id/play_button"
|
|
android:layout_width="30dp"
|
|
android:layout_height="30dp"
|
|
android:layout_gravity="end"
|
|
android:layout_marginTop="6dp"
|
|
android:layout_marginEnd="6dp"
|
|
android:layout_marginBottom="6dp"
|
|
android:background="@drawable/round_play_background"
|
|
android:contentDescription="@string/start_reading"
|
|
android:padding="6dp"
|
|
android:src="@drawable/ic_start_reading_white_24dp"
|
|
android:tint="@android:color/white" />
|
|
|
|
</FrameLayout>
|
|
|
|
<View
|
|
android:id="@+id/gradient"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="150dp"
|
|
android:layout_gravity="bottom"
|
|
android:alpha="0.75"
|
|
android:background="@drawable/gradient_shape" />
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
android:id="@+id/compact_title"
|
|
style="@style/TextAppearance.Regular.Body1.SemiBold"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom"
|
|
android:layout_marginStart="4dp"
|
|
android:layout_marginEnd="4dp"
|
|
android:layout_marginBottom="4dp"
|
|
android:ellipsize="end"
|
|
android:maxLines="2"
|
|
android:textColor="@android:color/white"
|
|
android:textSize="13sp"
|
|
tools:text="Sample name" />
|
|
|
|
<ProgressBar
|
|
android:id="@+id/progress"
|
|
style="?android:attr/progressBarStyleSmall"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:visibility="gone"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
<View
|
|
android:id="@+id/badge_guide"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="10dp"
|
|
app:layout_constraintTop_toTopOf="@+id/card" />
|
|
|
|
<include
|
|
layout="@layout/unread_download_badge"
|
|
android:layout_width="wrap_content"
|
|
android:layout_marginStart="1dp"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintBottom_toBottomOf="@id/badge_guide"
|
|
app:layout_constraintStart_toStartOf="parent" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/text_layout"
|
|
android:layout_width="match_parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
android:layout_marginStart="10dp"
|
|
android:layout_marginEnd="10dp"
|
|
android:orientation="vertical"
|
|
android:layout_height="30sp">
|
|
<com.google.android.material.textview.MaterialTextView
|
|
android:id="@+id/title"
|
|
style="@style/TextAppearance.Regular.Body1.Light"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:ellipsize="end"
|
|
android:maxLines="2"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
android:textSize="12sp"
|
|
app:layout_constraintBottom_toTopOf="@+id/subtitle"
|
|
tools:text="Sample name" />
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
android:id="@+id/subtitle"
|
|
style="@style/TextAppearance.Regular.Body1.Secondary"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="-1dp"
|
|
android:ellipsize="end"
|
|
android:singleLine="true"
|
|
android:textSize="12sp"
|
|
tools:text="Sample artist" />
|
|
</LinearLayout>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</FrameLayout> |