<androidx.constraintlayout.widget.ConstraintLayout 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="wrap_content"
    android:clipChildren="false"
    android:foreground="?attr/selectableItemBackground"
    android:orientation="horizontal"
    android:paddingHorizontal="16dp"
    android:paddingTop="3dp"
    android:paddingBottom="3dp">

    <ImageView
        android:id="@+id/queue_song_cover_image_view"
        android:layout_width="52dp"
        android:layout_height="52dp"
        android:layout_gravity="center"
        android:layout_margin="2dp"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

    <View
        android:id="@+id/cover_art_overlay"
        android:layout_width="52dp"
        android:layout_height="52dp"
        android:layout_marginStart="2dp"
        android:background="#80000000"
        android:visibility="gone"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

    <ImageView
        android:id="@+id/play_pause_icon"
        android:layout_width="28dp"
        android:layout_height="28dp"
        android:layout_gravity="center"
        android:layout_margin="14dp"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

    <TextView
        android:id="@+id/queue_song_title_text_view"
        style="@style/LabelMedium"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:ellipsize="marquee"
        android:paddingStart="12dp"
        android:paddingTop="10dp"
        android:paddingEnd="12dp"
        android:singleLine="true"
        android:text="@string/label_placeholder"
        app:layout_constraintEnd_toStartOf="@+id/rating_indicator_image_view"
        app:layout_constraintStart_toEndOf="@+id/queue_song_cover_image_view"
        app:layout_constraintTop_toTopOf="@id/queue_song_cover_image_view"
        app:layout_constraintBottom_toTopOf="@id/queue_song_subtitle_text_view"
        app:layout_constraintVertical_chainStyle="packed"/>

    <TextView
        android:id="@+id/queue_song_subtitle_text_view"
        style="@style/LabelSmall"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:ellipsize="marquee"
        android:paddingStart="12dp"
        android:paddingEnd="4dp"
        android:singleLine="true"
        android:text="@string/label_placeholder"
        app:layout_constrainedWidth="true"
        app:layout_constraintEnd_toEndOf="@+id/queue_song_title_text_view"
        app:layout_constraintStart_toEndOf="@+id/queue_song_cover_image_view"
        app:layout_constraintTop_toBottomOf="@+id/queue_song_title_text_view"
        app:layout_constraintBottom_toBottomOf="@+id/queue_song_cover_image_view"/>

    <androidx.constraintlayout.widget.ConstraintLayout
        android:id="@+id/rating_indicator_image_view"
        android:layout_width="42dp"
        android:layout_height="wrap_content"
        android:paddingVertical="8dp"
        android:layout_marginHorizontal="12dp"
        app:layout_constraintBottom_toBottomOf="@+id/queue_song_cover_image_view"
        app:layout_constraintEnd_toStartOf="@+id/queue_song_holder_image"
        app:layout_constraintStart_toEndOf="@+id/queue_song_title_text_view"
        app:layout_constraintTop_toTopOf="@+id/queue_song_cover_image_view">

        <ImageView
            android:id="@+id/preferred_icon"
            android:layout_width="18dp"
            android:layout_height="18dp"
            android:background="@drawable/ic_favorite"
            android:visibility="gone"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="parent"
            tools:visibility="visible" />

        <LinearLayout
            android:id="@+id/rating_bar_layout"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:orientation="horizontal"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@id/preferred_icon">

            <ImageView
                android:id="@+id/one_star_icon"
                android:layout_width="8dp"
                android:layout_height="8dp"
                tools:src="@drawable/ic_star" />

            <ImageView
                android:id="@+id/two_star_icon"
                android:layout_width="8dp"
                android:layout_height="8dp"
                tools:src="@drawable/ic_star" />

            <ImageView
                android:id="@+id/three_star_icon"
                android:layout_width="8dp"
                android:layout_height="8dp"
                tools:src="@drawable/ic_star" />

            <ImageView
                android:id="@+id/four_star_icon"
                android:layout_width="8dp"
                android:layout_height="8dp"
                tools:src="@drawable/ic_star" />

            <ImageView
                android:id="@+id/five_star_icon"
                android:layout_width="8dp"
                android:layout_height="8dp"
                tools:src="@drawable/ic_star" />

        </LinearLayout>
    </androidx.constraintlayout.widget.ConstraintLayout>

    <ImageView
        android:id="@+id/download_indicator_icon"
        android:layout_width="20dp"
        android:layout_height="20dp"
        android:layout_marginEnd="8dp"
        android:visibility="gone"
        android:src="@drawable/ic_download"  app:layout_constraintBottom_toBottomOf="@+id/queue_song_cover_image_view"
        app:layout_constraintEnd_toStartOf="@+id/queue_song_holder_image"
        app:layout_constraintTop_toTopOf="@+id/queue_song_cover_image_view"
        tools:visibility="visible" />

    <ImageView
        android:id="@+id/queue_song_holder_image"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:gravity="center_vertical"
        android:src="@drawable/ic_drag_handle"
        app:layout_constraintBottom_toBottomOf="@+id/queue_song_cover_image_view"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toEndOf="@+id/rating_indicator_image_view"
        app:layout_constraintTop_toTopOf="@+id/queue_song_cover_image_view" />
</androidx.constraintlayout.widget.ConstraintLayout>