<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
	xmlns:tools="http://schemas.android.com/tools"
	android:layout_width="match_parent"
	android:layout_height="match_parent"
	android:foreground="@drawable/fg_compose_attachment">

	<View
		android:id="@+id/drag_layer"
		android:layout_width="match_parent"
		android:layout_height="match_parent"
		android:alpha="0"
		android:visibility="gone"
		android:background="?colorM3OnSurface"/>

	<ImageView
		android:id="@+id/thumb"
		android:layout_width="match_parent"
		android:layout_height="match_parent"
		android:layout_above="@id/title"
		android:scaleType="centerCrop"
		android:importantForAccessibility="no"
		tools:src="#0f0"/>

	<TextView
		android:id="@+id/title"
		android:layout_width="match_parent"
		android:layout_height="24dp"
		android:layout_above="@id/subtitle"
		android:layout_marginTop="16dp"
		android:layout_marginLeft="16dp"
		android:layout_marginRight="16dp"
		android:textAppearance="@style/m3_body_large"
		android:textColor="?colorM3OnSurface"
		android:singleLine="true"
		android:ellipsize="end"
		android:gravity="center_vertical"
		tools:text="Title"/>
	
	<TextView
		android:id="@+id/subtitle"
		android:layout_width="match_parent"
		android:layout_height="20dp"
		android:layout_above="@id/delete"
		android:layout_marginLeft="16dp"
		android:layout_marginRight="16dp"
		android:textAppearance="@style/m3_body_medium"
		android:singleLine="true"
		android:ellipsize="end"
		android:textColor="?colorM3OnSurfaceVariant"
		android:gravity="center_vertical"
		tools:text="Subtitle"/>
	
	<ImageButton
		android:id="@+id/delete"
		android:layout_width="48dp"
		android:layout_height="48dp"
		android:layout_alignParentEnd="true"
		android:layout_alignParentBottom="true"
		android:layout_marginEnd="16dp"
		android:layout_marginBottom="8dp"
		android:src="@drawable/ic_fluent_delete_24_regular"
		android:tint="?colorM3OnSurfaceVariant"
		android:backgroundTint="?colorM3OnSurfaceVariant"
		android:background="@drawable/bg_round_ripple"/>

	<ImageButton
		android:id="@+id/edit"
		android:layout_width="48dp"
		android:layout_height="48dp"
		android:layout_toStartOf="@id/delete"
		android:layout_alignParentBottom="true"
		android:layout_marginEnd="8dp"
		android:layout_marginBottom="8dp"
		android:src="@drawable/ic_fluent_edit_24_regular"
		android:tint="?colorM3OnSurfaceVariant"
		android:backgroundTint="?colorM3OnSurfaceVariant"
		android:background="@drawable/bg_round_ripple"/>

	<ProgressBar
		android:id="@+id/progress"
		android:layout_width="match_parent"
		android:layout_height="16dp"
		android:layout_alignTop="@id/delete"
		android:layout_toStartOf="@id/delete"
		android:layout_marginStart="16dp"
		android:layout_marginEnd="8dp"
		android:layout_marginTop="16dp"
		android:progressDrawable="@drawable/m3_progress"
		style="@android:style/Widget.Material.ProgressBar.Horizontal"/>

</RelativeLayout>