<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:id="@+id/file"
    android:clickable="true"
    android:background="?android:selectableItemBackground"
    android:minHeight="?listPreferredItemHeight"
    >

    <ImageView
        android:id="@+id/thumbnail"
        android:layout_gravity="center_vertical"
        android:layout_width="36dp"
        android:layout_height="36dp"
        android:scaleType="center"
        android:padding="6dp"
        android:src="@drawable/ic_doc_generic_am" />

    <LinearLayout
        android:orientation="vertical"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_gravity="center_vertical"
        android:paddingLeft="8dp"
        android:paddingRight="8dp"
        android:layout_weight="1">

        <TextView
            android:id="@+id/filename"
            android:maxLines="1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textColor="?android:attr/textColorSecondary"
            android:textAppearance="?android:attr/textAppearanceMedium"
            android:ellipsize="end"
            android:text=""
            tools:text="filename.jpg" />

        <TextView
            android:id="@+id/filesize"
            android:maxLines="1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textColor="?android:attr/textColorTertiary"
            android:textAppearance="?android:attr/textAppearanceSmall"
            android:textSize="12sp"
            android:ellipsize="end"
            android:text=""
            tools:text="14kb" />

    </LinearLayout>

</LinearLayout>