<?xml version="1.0" encoding="utf-8"?>
<com.fastaccess.ui.widgets.ForegroundRelativeLayout
    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:layout_margin="@dimen/grid_spacing"
    android:foreground="?android:selectableItemBackground"
    android:paddingBottom="@dimen/spacing_normal"
    android:paddingEnd="@dimen/spacing_micro"
    android:paddingTop="@dimen/spacing_normal"
    tools:ignore="RtlSymmetry">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal">

        <com.fastaccess.ui.widgets.ForegroundImageView
            android:id="@+id/contentTypeImage"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:layout_marginEnd="@dimen/avatar_margin_end"
            android:layout_marginStart="@dimen/avatar_margin"
            android:background="?selectableItemBackgroundBorderless"
            android:contentDescription="@string/file"
            android:padding="@dimen/spacing_micro"
            tools:src="@drawable/ic_file_document"/>

        <LinearLayout
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:layout_marginEnd="@dimen/spacing_normal"
            android:layout_weight="1"
            android:orientation="vertical">

            <com.fastaccess.ui.widgets.FontTextView
                android:id="@+id/title"
                style="@style/TextAppearance.AppCompat.Medium"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:ellipsize="end"
                android:maxLines="3"
                android:textColor="?android:textColorPrimary"
                tools:text="File Name"/>

            <com.fastaccess.ui.widgets.FontTextView
                android:id="@+id/size"
                style="@style/TextAppearance.AppCompat.Small"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_gravity="center"
                tools:text="10KB"/>
        </LinearLayout>

        <com.fastaccess.ui.widgets.ForegroundImageView
            android:id="@+id/menu"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:background="?selectableItemBackgroundBorderless"
            android:contentDescription="@string/file_menu"
            android:padding="@dimen/spacing_micro"
            android:scaleType="centerCrop"
            android:src="@drawable/ic_overflow"/>
    </LinearLayout>

</com.fastaccess.ui.widgets.ForegroundRelativeLayout>