<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
    android:id="@+id/mainQuoteViewContainer"
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:background="@color/input_bar_background"
    android:paddingHorizontal="@dimen/medium_spacing">

    <View
        android:id="@+id/quoteViewAccentLine"
        android:layout_width="@dimen/accent_line_thickness"
        android:layout_height="0dp"
        android:layout_alignParentStart="true"
        android:layout_centerVertical="true"
        android:background="@color/text" />

    <RelativeLayout
        android:id="@+id/quoteViewAttachmentPreviewContainer"
        android:layout_width="40dp"
        android:layout_height="40dp"
        android:layout_alignParentStart="true"
        android:layout_centerVertical="true"
        android:background="@drawable/view_quote_attachment_preview_background">

        <ImageView
            android:id="@+id/quoteViewAttachmentPreviewImageView"
            android:layout_width="20dp"
            android:layout_height="20dp"
            android:layout_centerInParent="true"
            android:scaleType="centerInside"
            android:src="@drawable/ic_microphone" />

        <org.thoughtcrime.securesms.conversation.v2.utilities.ThumbnailView
            android:id="@+id/quoteViewAttachmentThumbnailImageView"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:scaleType="centerCrop"
            android:visibility="gone" />

    </RelativeLayout>

    <LinearLayout
        android:id="@+id/quoteViewMainContentContainer"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginStart="16dp"
        android:layout_marginEnd="30dp"
        android:gravity="center_vertical"
        android:layout_alignParentStart="true"
        android:layout_centerVertical="true"
        android:orientation="vertical">

        <TextView
            android:id="@+id/quoteViewAuthorTextView"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Spiderman"
            android:textSize="@dimen/small_font_size"
            android:textStyle="bold"
            android:textColor="@color/text"
            android:maxLines="1"
            android:ellipsize="end" />

        <TextView
            android:id="@+id/quoteViewBodyTextView"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:ellipsize="end"
            android:maxLines="3"
            android:text="Yo, I need your help here!"
            android:textColor="@color/text"
            android:textSize="@dimen/small_font_size" />

    </LinearLayout>

    <ImageView
        android:id="@+id/quoteViewCancelButton"
        android:layout_width="32dp"
        android:layout_height="32dp"
        android:padding="6dp"
        android:layout_alignParentEnd="true"
        android:layout_centerVertical="true"
        android:src="@drawable/ic_close_white_48dp"
        app:tint="@color/text" />

</RelativeLayout>