<?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"
  xmlns:tools="http://schemas.android.com/tools"
  android:layout_width="match_parent"
  android:layout_height="wrap_content"
  android:layout_marginHorizontal="8dp"
  android:layout_marginVertical="5dp"
  android:background="@drawable/ripple"
  android:gravity="center_vertical"
  android:padding="8dp"
  android:transitionGroup="true"
  tools:showIn="@layout/fragment_playlists">

  <androidx.constraintlayout.widget.ConstraintLayout
    android:id="@+id/covers"
    android:layout_width="0dp"
    android:layout_height="0dp"
    app:layout_constraintBottom_toBottomOf="parent"
    app:layout_constraintDimensionRatio="1:1"
    app:layout_constraintLeft_toLeftOf="parent"
    app:layout_constraintTop_toTopOf="parent">

    <androidx.constraintlayout.widget.Guideline
      android:id="@+id/horizontal"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:orientation="vertical"
      app:layout_constraintGuide_percent=".50" />

    <androidx.constraintlayout.widget.Guideline
      android:id="@+id/vertical"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:orientation="horizontal"
      app:layout_constraintGuide_percent=".50" />

    <audio.funkwhale.ffa.views.SquareImageView
      android:id="@+id/cover_top_left"
      android:layout_width="0dp"
      android:layout_height="0dp"
      android:src="@drawable/cover"
      app:layout_constraintBottom_toBottomOf="@id/vertical"
      app:layout_constraintDimensionRatio="1:1"
      app:layout_constraintLeft_toLeftOf="parent"
      app:layout_constraintRight_toRightOf="@id/horizontal"
      app:layout_constraintTop_toTopOf="parent"
      tools:src="@tools:sample/avatars" />

    <audio.funkwhale.ffa.views.SquareImageView
      android:id="@+id/cover_top_right"
      android:layout_width="0dp"
      android:layout_height="0dp"
      android:src="@drawable/cover"
      app:layout_constraintBottom_toBottomOf="@id/vertical"
      app:layout_constraintDimensionRatio="1:1"
      app:layout_constraintLeft_toLeftOf="@id/horizontal"
      app:layout_constraintRight_toRightOf="parent"
      app:layout_constraintTop_toTopOf="parent"
      tools:src="@tools:sample/avatars" />

    <audio.funkwhale.ffa.views.SquareImageView
      android:id="@+id/cover_bottom_left"
      android:layout_width="0dp"
      android:layout_height="0dp"
      android:src="@drawable/cover"
      app:layout_constraintBottom_toBottomOf="parent"
      app:layout_constraintDimensionRatio="1:1"
      app:layout_constraintLeft_toLeftOf="parent"
      app:layout_constraintRight_toRightOf="@id/horizontal"
      app:layout_constraintTop_toTopOf="@id/vertical"
      tools:src="@tools:sample/avatars" />

    <audio.funkwhale.ffa.views.SquareImageView
      android:id="@+id/cover_bottom_right"
      android:layout_width="0dp"
      android:layout_height="0dp"
      android:src="@drawable/cover"
      app:layout_constraintBottom_toBottomOf="parent"
      app:layout_constraintDimensionRatio="1:1"
      app:layout_constraintLeft_toLeftOf="@id/horizontal"
      app:layout_constraintRight_toRightOf="parent"
      app:layout_constraintTop_toTopOf="@id/vertical"
      tools:src="@tools:sample/avatars" />


  </androidx.constraintlayout.widget.ConstraintLayout>

  <LinearLayout
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:layout_marginStart="16dp"
    android:orientation="vertical"
    app:layout_constraintBottom_toBottomOf="parent"
    app:layout_constraintLeft_toRightOf="@id/covers"
    app:layout_constraintRight_toRightOf="parent"
    app:layout_constraintTop_toTopOf="parent">

    <TextView
      android:id="@+id/name"
      style="@style/AppTheme.ItemTitle"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_marginBottom="4dp"
      tools:text="Waking up playlist" />

    <TextView
      android:id="@+id/summary"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      tools:text="103 tracks • 1h58" />

  </LinearLayout>

</androidx.constraintlayout.widget.ConstraintLayout>
