<?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"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginBottom="10dp"
    android:foreground="?attr/selectableItemBackground"
    app:cardBackgroundColor="@color/reader_v2_canvas"
    app:cardCornerRadius="2dp"
    app:cardElevation="2dp"
    app:strokeColor="@color/reader_v2_separator"
    app:strokeWidth="1dp">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:gravity="top"
        android:orientation="horizontal"
        android:paddingStart="14dp"
        android:paddingTop="14dp"
        android:paddingEnd="8dp"
        android:paddingBottom="14dp">

        <ImageView
            android:layout_width="24dp"
            android:layout_height="28dp"
            android:contentDescription="@null"
            android:src="@drawable/ic_reader_v2_bookmark"
            android:tint="@color/reader_v2_accent" />

        <LinearLayout
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_marginStart="12dp"
            android:layout_weight="1"
            android:orientation="vertical">

            <TextView
                android:id="@+id/bookmark_meta_text"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:textColor="@color/reader_v2_secondary_on_light"
                android:textSize="12sp" />

            <TextView
                android:id="@+id/bookmark_title_text"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="8dp"
                android:ellipsize="end"
                android:maxLines="4"
                android:textColor="@color/reader_v2_text"
                android:textSize="15sp" />
        </LinearLayout>

        <ImageButton
            android:id="@+id/delete_bookmark_button"
            android:layout_width="48dp"
            android:layout_height="48dp"
            android:background="?attr/selectableItemBackgroundBorderless"
            android:contentDescription="@string/reader_v2_delete"
            android:padding="11dp"
            android:src="@drawable/ic_reader_v2_delete" />
    </LinearLayout>
</com.google.android.material.card.MaterialCardView>
