2020-01-04 01:48:24 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2020-01-05 03:39:42 +01:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2020-01-04 01:48:24 +01:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2020-01-05 03:39:42 +01:00
|
|
|
android:layout_width="wrap_content"
|
2020-01-04 01:48:24 +01:00
|
|
|
android:layout_height="wrap_content"
|
2020-01-05 03:39:42 +01:00
|
|
|
android:background="?selectable_library_drawable">
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/card"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="220dp"
|
|
|
|
android:background="@drawable/card_background"
|
|
|
|
app:layout_constraintDimensionRatio="0.75"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:layout_constraintWidth_min="100dp"
|
|
|
|
app:layout_constraintHeight_min="100dp">
|
2020-01-04 01:48:24 +01:00
|
|
|
|
|
|
|
<ImageView
|
2020-01-05 03:39:42 +01:00
|
|
|
android:id="@+id/thumbnail"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="?android:attr/colorBackground"
|
|
|
|
tools:background="?android:attr/colorBackground"
|
|
|
|
tools:ignore="ContentDescription"
|
|
|
|
tools:src="@mipmap/ic_launcher" />
|
2020-01-04 01:48:24 +01:00
|
|
|
|
2020-01-05 03:39:42 +01:00
|
|
|
<View
|
|
|
|
android:id="@+id/gradient"
|
|
|
|
android:layout_width="match_parent"
|
2020-01-04 01:48:24 +01:00
|
|
|
android:layout_height="wrap_content"
|
2020-01-05 03:39:42 +01:00
|
|
|
android:layout_gravity="bottom"
|
|
|
|
android:background="@drawable/gradient_shape" />
|
2020-01-04 01:48:24 +01:00
|
|
|
|
2020-01-05 03:39:42 +01:00
|
|
|
<ProgressBar
|
|
|
|
android:id="@+id/loading_group"
|
|
|
|
android:layout_width="56dp"
|
|
|
|
android:layout_height="56dp"
|
|
|
|
android:layout_gravity="center" />
|
2020-01-04 01:48:24 +01:00
|
|
|
|
2020-01-05 03:39:42 +01:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/manga_chapters"
|
|
|
|
style="@style/TextAppearance.Regular.Caption.Light"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2020-01-30 08:57:17 +01:00
|
|
|
android:textColor="@color/md_white_1000"
|
2020-01-05 03:39:42 +01:00
|
|
|
android:background="@color/md_teal_500"
|
|
|
|
android:paddingBottom="1dp"
|
|
|
|
android:paddingLeft="3dp"
|
|
|
|
android:paddingRight="3dp"
|
|
|
|
android:paddingTop="1dp"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible"
|
|
|
|
android:text="101"
|
|
|
|
android:layout_marginStart="4dp"
|
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
android:layout_marginTop="4dp"/>
|
2020-01-04 01:48:24 +01:00
|
|
|
|
2020-01-05 03:39:42 +01:00
|
|
|
<eu.kanade.tachiyomi.widget.PTSansTextView
|
|
|
|
android:id="@+id/title"
|
|
|
|
style="@style/TextAppearance.Regular.Body1.Light"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-01-30 08:57:17 +01:00
|
|
|
android:textColor="@color/md_white_1000"
|
2020-01-05 03:39:42 +01:00
|
|
|
android:layout_gravity="bottom"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:lineSpacingExtra="-4dp"
|
|
|
|
android:maxLines="2"
|
|
|
|
android:padding="8dp"
|
2020-01-30 08:57:17 +01:00
|
|
|
android:shadowColor="@color/md_black_1000_87"
|
2020-01-05 03:39:42 +01:00
|
|
|
android:shadowDx="0"
|
|
|
|
android:shadowDy="0"
|
|
|
|
android:shadowRadius="4"
|
|
|
|
app:typeface="ptsansNarrowBold"
|
|
|
|
tools:text="Sample name" />
|
2020-01-04 01:48:24 +01:00
|
|
|
|
2020-01-05 03:39:42 +01:00
|
|
|
<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" />
|
2020-01-04 01:48:24 +01:00
|
|
|
|
2020-01-05 03:39:42 +01:00
|
|
|
</FrameLayout>
|
2020-01-04 01:48:24 +01:00
|
|
|
|
2020-01-05 03:39:42 +01:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:paddingBottom="20dp"
|
|
|
|
android:gravity="start"
|
|
|
|
android:orientation="vertical"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="@id/card"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/card"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/card">
|
2020-01-04 01:48:24 +01:00
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
2020-01-05 03:39:42 +01:00
|
|
|
android:id="@+id/manga_source_label"
|
|
|
|
style="@style/TextAppearance.Medium.Body2"
|
2020-01-04 01:48:24 +01:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2020-01-05 03:39:42 +01:00
|
|
|
android:clickable="false"
|
|
|
|
android:textIsSelectable="false"
|
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
|
|
|
tools:layout_editor_absoluteY="57dp" />
|
2020-01-04 01:48:24 +01:00
|
|
|
|
2020-01-05 03:39:42 +01:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/manga_last_chapter_label"
|
|
|
|
style="@style/TextAppearance.Regular.Body1.Secondary"
|
2020-01-04 01:48:24 +01:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2020-01-05 03:39:42 +01:00
|
|
|
android:clickable="false"
|
|
|
|
android:textIsSelectable="false" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|