<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
	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="@dimen/manga_list_details_item_height"
	android:background="@drawable/list_selector"
	android:orientation="horizontal">

	<LinearLayout
		android:layout_width="match_parent"
		android:layout_height="match_parent"
		android:orientation="horizontal">

		<com.google.android.material.card.MaterialCardView
			android:layout_width="wrap_content"
			android:layout_height="wrap_content"
			android:layout_margin="4dp"
			app:cardElevation="4dp">

			<org.koitharu.kotatsu.base.ui.widgets.CoverImageView
				android:id="@+id/imageView_cover"
				android:layout_width="wrap_content"
				android:layout_height="match_parent"
				android:orientation="vertical"
				android:scaleType="centerCrop" />

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

		<LinearLayout
			android:layout_width="match_parent"
			android:layout_height="wrap_content"
			android:layout_gravity="center_vertical"
			android:layout_marginStart="16dp"
			android:layout_marginTop="8dp"
			android:layout_marginEnd="8dp"
			android:layout_marginBottom="8dp"
			android:orientation="vertical">

			<TextView
				android:id="@+id/textView_title"
				android:layout_width="match_parent"
				android:layout_height="wrap_content"
				android:layout_marginBottom="4dp"
				android:ellipsize="end"
				android:maxLines="2"
				android:textAppearance="@style/TextAppearance.Kotatsu.ToolbarTitle"
				android:textSize="18sp"
				tools:text="@tools:sample/lorem/random" />

			<TextView
				android:id="@+id/textView_subtitle"
				android:layout_width="wrap_content"
				android:layout_height="wrap_content"
				android:layout_marginBottom="4dp"
				android:ellipsize="none"
				android:gravity="center_vertical"
				android:requiresFadingEdge="horizontal"
				android:singleLine="true"
				android:textSize="16sp"
				tools:text="@tools:sample/lorem/random" />

			<LinearLayout
				android:layout_width="match_parent"
				android:layout_height="wrap_content"
				android:orientation="horizontal">

				<TextView
					android:id="@+id/textView_tags"
					android:layout_width="0dp"
					android:layout_height="wrap_content"
					android:layout_weight="1"
					android:ellipsize="none"
					android:gravity="center_vertical"
					android:requiresFadingEdge="horizontal"
					android:singleLine="true"
					tools:text="@tools:sample/lorem/random" />

				<TextView
					android:id="@+id/textView_rating"
					android:layout_width="wrap_content"
					android:layout_height="wrap_content"
					android:layout_gravity="bottom"
					android:drawablePadding="4dp"
					android:paddingStart="6dp"
					app:drawableEndCompat="@drawable/ic_star"
					tools:text="9.6" />

			</LinearLayout>

		</LinearLayout>

	</LinearLayout>

</LinearLayout>