<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:a="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    a:id="@+id/containing_layout"
    a:layout_width="match_parent"
    a:layout_height="wrap_content"
    a:background="?android:attr/selectableItemBackground"
    a:clickable="true"
    a:focusable="true">

    <com.google.android.material.imageview.ShapeableImageView
        a:id="@+id/coverart"
        a:layout_width="64dp"
        a:layout_height="64dp"
        a:layout_gravity="center_horizontal|center_vertical"
        a:layout_marginStart="6dp"
        a:layout_marginTop="6dp"
        a:scaleType="fitCenter"
        a:src="@drawable/unknown_album"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:shapeAppearanceOverlay="@style/largeRoundedImageView" />

    <LinearLayout
        a:id="@+id/row_album_details"
        a:layout_width="0dp"
        a:layout_height="74dp"
        a:layout_marginStart="10dp"
        a:drawablePadding="6dip"
        a:gravity="center_vertical"
        a:minHeight="56dip"
        a:orientation="vertical"
        a:paddingStart="3dip"
        a:paddingEnd="3dip"
        a:textAppearance="?android:attr/textAppearanceMedium"
        app:layout_constraintEnd_toStartOf="@+id/album_star"
        app:layout_constraintLeft_toRightOf="@+id/coverart"
        app:layout_constraintStart_toEndOf="@+id/coverart"
        app:layout_constraintTop_toTopOf="parent">

        <TextView
            a:id="@+id/album_title"
            a:layout_width="match_parent"
            a:layout_height="wrap_content"
            a:ellipsize="marquee"
            a:singleLine="true"
            a:textAppearance="?android:attr/textAppearanceMedium"
            tools:text="TITLE" />

        <TextView
            a:id="@+id/album_artist"
            a:layout_width="match_parent"
            a:layout_height="wrap_content"
            a:singleLine="true"
            a:textAppearance="?android:attr/textAppearanceSmall"
            tools:text="ARTIST" />

    </LinearLayout>

    <ImageView
        a:id="@+id/album_star"
        a:layout_width="38dp"
        a:layout_height="38dp"
        a:layout_marginStart="16dp"
        a:layout_marginTop="16dp"
        a:layout_marginEnd="20dp"
        a:background="@android:color/transparent"
        a:gravity="center_horizontal"
        a:src="@drawable/ic_star_hollow"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintLeft_toRightOf="@+id/row_album_details"
        app:layout_constraintStart_toEndOf="@+id/row_album_details"
        app:layout_constraintTop_toTopOf="parent"
        a:contentDescription="@string/download.menu_star" />

</androidx.constraintlayout.widget.ConstraintLayout>
