<?xml version="1.0" encoding="utf-8"?>
<org.thoughtcrime.securesms.conversation.v2.messages.DocumentView
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    xmlns:tools="http://schemas.android.com/tools"
    android:orientation="horizontal"
    android:padding="@dimen/medium_spacing"
    android:gravity="center"
    android:contentDescription="@string/AccessibilityId_document">

    <com.google.android.material.progressindicator.CircularProgressIndicator
        android:id="@+id/documentViewProgress"
        style="@style/Widget.Material3.CircularProgressIndicator.Small"
        android:indeterminate="true"
        android:layout_width="36dp"
        android:layout_height="36dp"/>

    <ImageView
        android:id="@+id/documentViewIconImageView"
        android:layout_width="36dp"
        android:layout_height="36dp"
        android:src="@drawable/ic_document_large_light"
        app:tint="?android:textColorPrimary" />

    <TextView
        android:id="@+id/documentTitleTextView"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginStart="4dp"
        android:textSize="@dimen/small_font_size"
        android:textColor="?android:textColorPrimary"
        tools:text="I'm a very long document title. Did you know that?"
        android:maxLines="2"
        android:ellipsize="end" />

</org.thoughtcrime.securesms.conversation.v2.messages.DocumentView>