<?xml version="1.0" encoding="utf-8"?>
<com.google.android.material.card.MaterialCardView
	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">

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

		<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" />

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

			<TextView
				android:id="@+id/textView_title"
				android:layout_width="match_parent"
				android:layout_height="wrap_content"
				android:layout_marginStart="6dp"
				android:layout_marginTop="6dp"
				android:layout_marginEnd="6dp"
				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="match_parent"
				android:layout_height="wrap_content"
				android:layout_marginStart="6dp"
				android:layout_marginTop="4dp"
				android:layout_marginEnd="6dp"
				android:layout_marginBottom="6dp"
				android:ellipsize="end"
				android:maxLines="1"
				android:textAppearance="@style/TextAppearance.MaterialComponents.Body2"
				android:textColor="?android:textColorSecondary"
				tools:text="@tools:sample/lorem[6]" />

			<Space
				android:layout_width="wrap_content"
				android:layout_height="0dp"
				android:layout_weight="1" />

			<View
				android:id="@+id/divider"
				android:layout_width="match_parent"
				android:layout_height="1dp"
				android:background="?android:listDivider" />

			<LinearLayout
				android:layout_width="match_parent"
				android:layout_height="wrap_content"
				android:gravity="center_vertical"
				android:orientation="horizontal"
				android:paddingStart="6dp"
				android:paddingEnd="6dp">

				<TextView
					android:id="@+id/textView_tags"
					android:layout_width="0dp"
					android:layout_height="wrap_content"
					android:layout_marginTop="12dp"
					android:layout_marginBottom="12dp"
					android:layout_weight="1"
					android:ellipsize="none"
					android:gravity="center_vertical"
					android:requiresFadingEdge="horizontal"
					android:singleLine="true" />

				<TextView
					android:id="@+id/textView_rating"
					android:layout_width="wrap_content"
					android:layout_height="wrap_content"
					android:drawablePadding="4dp"
					android:textAppearance="@style/TextAppearance.MaterialComponents.Body2"
					app:drawableStartCompat="@drawable/ic_star_rating"
					tools:text="10/10" />

			</LinearLayout>

		</LinearLayout>

	</LinearLayout>

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