<?xml version="1.0" encoding="utf-8"?>
<com.google.android.material.card.MaterialCardView
	xmlns:android="http://schemas.android.com/apk/res/android"
	xmlns:tools="http://schemas.android.com/tools"
	android:layout_width="match_parent"
	android:layout_height="wrap_content">

	<RelativeLayout
		android:layout_width="match_parent"
		android:layout_height="wrap_content">

		<org.koitharu.kotatsu.base.ui.widgets.CoverImageView
			android:id="@+id/imageView_cover"
			android:layout_width="87dp"
			android:layout_height="wrap_content"
			android:layout_alignParentStart="true"
			android:layout_alignParentTop="true" />

		<TextView
			android:id="@+id/textView_title"
			android:layout_width="0dp"
			android:layout_height="wrap_content"
			android:layout_alignParentTop="true"
			android:layout_alignParentEnd="true"
			android:layout_marginStart="6dp"
			android:layout_marginTop="6dp"
			android:layout_marginEnd="6dp"
			android:layout_toEndOf="@id/imageView_cover"
			android:ellipsize="end"
			android:maxLines="2"
			android:textAppearance="@style/TextAppearance.MaterialComponents.Body1"
			tools:text="@tools:sample/lorem[6]" />

		<TextView
			android:id="@+id/textView_subtitle"
			android:layout_width="0dp"
			android:layout_height="wrap_content"
			android:layout_below="@id/textView_title"
			android:layout_alignParentEnd="true"
			android:layout_marginStart="6dp"
			android:layout_marginTop="4dp"
			android:layout_marginEnd="6dp"
			android:layout_marginBottom="6dp"
			android:layout_toEndOf="@id/imageView_cover"
			android:ellipsize="end"
			android:maxLines="1"
			android:textAppearance="@style/TextAppearance.MaterialComponents.Body2"
			android:textColor="?android:textColorSecondary"
			tools:text="@tools:sample/lorem[6]" />

		<View
			android:id="@+id/divider"
			android:layout_width="match_parent"
			android:layout_height="1dp"
			android:layout_below="@id/textView_subtitle"
			android:layout_alignParentEnd="true"
			android:layout_toEndOf="@id/imageView_cover"
			android:background="?android:listDivider" />

		<TextView
			android:id="@+id/textView_chapters"
			android:layout_width="0dp"
			android:layout_height="wrap_content"
			android:layout_below="@id/divider"
			android:layout_alignParentEnd="true"
			android:layout_marginStart="6dp"
			android:layout_marginTop="8dp"
			android:layout_marginEnd="6dp"
			android:layout_toEndOf="@id/imageView_cover"
			android:ellipsize="none"
			android:paddingBottom="12dp" />

	</RelativeLayout>

</com.google.android.material.card.MaterialCardView>