<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:fresco="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/attachment_container"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical">

    <TextView
        android:id="@+id/text_file_attachment"
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:background="@drawable/style_message_file_upload_content_bg"
        android:drawablePadding="10dp"
        android:drawableStart="@drawable/ic_files_24dp"
        android:ellipsize="end"
        android:gravity="center"
        android:maxLength="20"
        android:maxLines="1"
        android:padding="5dp"
        android:visibility="gone"
        tools:text="brazilian_anthem.mp4"
        tools:visibility="visible" />

    <com.facebook.drawee.view.SimpleDraweeView
        android:id="@+id/image_attachment"
        android:layout_width="match_parent"
        android:layout_height="150dp"
        android:visibility="gone"
        fresco:actualImageScaleType="fitStart"
        fresco:placeholderImage="@drawable/image_dummy"
        tools:visibility="visible" />

    <FrameLayout
        android:id="@+id/audio_video_attachment"
        android:layout_width="match_parent"
        android:layout_height="150dp"
        android:background="@color/black"
        android:visibility="gone"
        tools:visibility="gone">

        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:src="@drawable/exo_controls_play" />
    </FrameLayout>

    <TextView
        android:id="@+id/file_name"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        tools:text="Filename.png" />

</LinearLayout>