<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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="@dimen/bottom_sheet_peek_height"
    android:background="?attr/colorSurface"
    android:clipChildren="false">

    <ImageView
        android:id="@+id/player_header_media_cover_image"
        android:layout_width="42dp"
        android:layout_height="42dp"
        android:layout_gravity="center"
        android:layout_marginStart="12dp"
        app:layout_constraintBottom_toTopOf="@+id/player_header_seek_bar"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

    <TextView
        android:id="@+id/player_header_media_title_label"
        style="@style/LabelMedium"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:ellipsize="end"
        android:maxLines="1"
        android:paddingStart="8dp"
        android:paddingEnd="8dp"
        app:layout_constraintVertical_chainStyle="packed"
        app:layout_constraintEnd_toStartOf="@+id/placeholder_left_view"
        app:layout_constraintStart_toEndOf="@+id/player_header_media_cover_image"
        app:layout_constraintTop_toTopOf="@+id/player_header_media_cover_image"
        app:layout_constraintBottom_toTopOf="@+id/player_header_media_artist_label"/>

    <TextView
        android:id="@+id/player_header_media_artist_label"
        style="@style/LabelSmall"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:ellipsize="end"
        android:maxLines="1"
        android:paddingStart="8dp"
        android:paddingEnd="8dp"
        app:layout_constraintEnd_toStartOf="@+id/placeholder_left_view"
        app:layout_constraintStart_toEndOf="@+id/player_header_media_cover_image"
        app:layout_constraintTop_toBottomOf="@+id/player_header_media_title_label"
        app:layout_constraintBottom_toBottomOf="@+id/player_header_media_cover_image"/>

    <View
        android:id="@+id/placeholder_left_view"
        android:layout_width="28dp"
        android:layout_height="28dp"
        android:layout_marginStart="12dp"
        android:layout_marginEnd="12dp"
        app:layout_constraintBottom_toTopOf="@+id/player_header_seek_bar"
        app:layout_constraintEnd_toStartOf="@+id/player_header_button"
        app:layout_constraintTop_toTopOf="parent" />

    <View
        android:id="@+id/placeholder_right_view"
        android:layout_width="28dp"
        android:layout_height="28dp"
        android:layout_marginStart="12dp"
        android:layout_marginEnd="12dp"
        app:layout_constraintBottom_toTopOf="@+id/player_header_seek_bar"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

    <ImageButton
        android:id="@+id/player_header_bookmark_media_button"
        android:layout_width="28dp"
        android:layout_height="28dp"
        android:layout_marginStart="12dp"
        android:layout_marginEnd="12dp"
        android:background="@drawable/ic_bookmark_sync"
        android:foreground="?android:attr/selectableItemBackgroundBorderless"
        android:visibility="gone"
        app:layout_constraintBottom_toTopOf="@+id/player_header_seek_bar"
        app:layout_constraintEnd_toStartOf="@+id/player_header_button"
        app:layout_constraintTop_toTopOf="parent" />

    <ImageButton
        android:id="@+id/player_header_rewind_media_button"
        android:layout_width="28dp"
        android:layout_height="28dp"
        android:layout_marginStart="12dp"
        android:layout_marginEnd="12dp"
        android:background="@drawable/ic_replay"
        android:foreground="?android:attr/selectableItemBackgroundBorderless"
        android:visibility="gone"
        app:layout_constraintBottom_toTopOf="@+id/player_header_seek_bar"
        app:layout_constraintEnd_toStartOf="@+id/player_header_button"
        app:layout_constraintTop_toTopOf="parent" />

    <ToggleButton
        android:id="@+id/player_header_button"
        android:layout_width="28dp"
        android:layout_height="28dp"
        android:layout_marginStart="12dp"
        android:layout_marginEnd="12dp"
        android:background="@drawable/button_play_pause_selector"
        android:checked="false"
        android:foreground="?android:attr/selectableItemBackgroundBorderless"
        android:text=""
        android:textOff=""
        android:textOn=""
        app:layout_constraintBottom_toTopOf="@+id/player_header_seek_bar"
        app:layout_constraintEnd_toStartOf="@+id/placeholder_right_view"
        app:layout_constraintTop_toTopOf="parent" />

    <ImageButton
        android:id="@+id/player_header_next_media_button"
        android:layout_width="28dp"
        android:layout_height="28dp"
        android:layout_marginStart="12dp"
        android:layout_marginEnd="12dp"
        android:background="@drawable/ic_skip_next"
        android:foreground="?android:attr/selectableItemBackgroundBorderless"
        app:layout_constraintBottom_toTopOf="@+id/player_header_seek_bar"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

    <ImageButton
        android:id="@+id/player_header_fast_forward_media_button"
        android:layout_width="28dp"
        android:layout_height="28dp"
        android:layout_marginStart="12dp"
        android:layout_marginEnd="12dp"
        android:background="@drawable/ic_forward"
        android:foreground="?android:attr/selectableItemBackgroundBorderless"
        android:visibility="gone"
        app:layout_constraintBottom_toTopOf="@+id/player_header_seek_bar"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

    <SeekBar
        android:id="@+id/player_header_seek_bar"
        android:layout_width="match_parent"
        android:layout_height="2dp"
        android:background="?attr/colorSurface"
        android:clickable="false"
        android:paddingStart="0dp"
        android:paddingEnd="0dp"
        android:thumb="@android:color/transparent"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent" />

</androidx.constraintlayout.widget.ConstraintLayout>