2015-10-12 01:01:20 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2020-02-18 07:53:38 +01:00
|
|
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2020-02-17 09:14:38 +01:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2020-02-18 07:53:38 +01:00
|
|
|
android:id="@+id/manga_layout"
|
2020-02-17 09:14:38 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-02-18 07:53:38 +01:00
|
|
|
android:layout_gravity="bottom">
|
2020-02-17 09:14:38 +01:00
|
|
|
|
2020-02-18 07:53:38 +01:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:id="@+id/constraint_layout"
|
2020-02-14 07:49:32 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="bottom"
|
2020-02-18 07:53:38 +01:00
|
|
|
android:background="@drawable/library_compact_grid_selector"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
|
|
android:id="@+id/card"
|
2016-04-29 20:00:03 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-02-18 07:53:38 +01:00
|
|
|
android:layout_gravity="bottom"
|
2020-03-15 01:27:39 +01:00
|
|
|
android:layout_marginStart="10dp"
|
2020-02-18 07:53:38 +01:00
|
|
|
android:layout_marginTop="10dp"
|
2020-03-15 01:27:39 +01:00
|
|
|
android:layout_marginEnd="10dp"
|
2020-02-20 09:10:15 +01:00
|
|
|
app:layout_constraintBottom_toTopOf="@+id/text_layout"
|
2020-02-14 07:49:32 +01:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2020-02-18 07:53:38 +01:00
|
|
|
app:layout_constraintVertical_bias="1.0">
|
|
|
|
|
2020-02-14 07:49:32 +01:00
|
|
|
<ImageView
|
2020-02-18 07:53:38 +01:00
|
|
|
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"
|
2020-02-15 11:48:47 +01:00
|
|
|
android:layout_gravity="end"
|
2020-02-18 07:53:38 +01:00
|
|
|
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"
|
2020-03-02 02:44:24 +01:00
|
|
|
android:alpha="0.75"
|
2020-02-18 07:53:38 +01:00
|
|
|
android:background="@drawable/gradient_shape" />
|
2020-02-15 11:48:47 +01:00
|
|
|
|
2020-02-18 07:53:38 +01:00
|
|
|
<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>
|
2015-11-24 18:45:53 +01:00
|
|
|
|
2020-02-15 11:48:47 +01:00
|
|
|
<View
|
2020-02-18 07:53:38 +01:00
|
|
|
android:id="@+id/badge_guide"
|
2020-02-15 11:48:47 +01:00
|
|
|
android:layout_width="match_parent"
|
2020-02-18 07:53:38 +01:00
|
|
|
android:layout_height="10dp"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/card" />
|
|
|
|
|
|
|
|
<include
|
|
|
|
layout="@layout/unread_download_badge"
|
|
|
|
android:layout_width="wrap_content"
|
2020-03-15 01:54:55 +01:00
|
|
|
android:layout_marginStart="1dp"
|
2020-02-18 07:53:38 +01:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/badge_guide"
|
|
|
|
app:layout_constraintStart_toStartOf="parent" />
|
2020-02-14 07:49:32 +01:00
|
|
|
|
2020-02-20 09:10:15 +01:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/text_layout"
|
2015-12-26 21:54:10 +01:00
|
|
|
android:layout_width="match_parent"
|
2020-02-18 07:53:38 +01:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2020-02-14 07:49:32 +01:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2020-03-15 22:34:28 +01:00
|
|
|
android:layout_marginStart="10dp"
|
|
|
|
android:layout_marginEnd="10dp"
|
2020-02-20 09:10:15 +01:00
|
|
|
android:orientation="vertical"
|
2020-03-07 19:52:49 +01:00
|
|
|
android:layout_height="30sp">
|
2020-02-20 09:10:15 +01:00
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
|
|
android:id="@+id/title"
|
2020-03-15 22:34:28 +01:00
|
|
|
style="@style/TextAppearance.Regular.Body1.Light"
|
2020-02-20 09:10:15 +01:00
|
|
|
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"
|
2020-03-15 22:34:28 +01:00
|
|
|
style="@style/TextAppearance.Regular.Body1.Secondary"
|
2020-02-20 09:10:15 +01:00
|
|
|
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>
|
|
|
|
|
2020-02-18 07:53:38 +01:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</FrameLayout>
|