<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_height="match_parent" android:layout_width="match_parent">

    <org.thoughtcrime.securesms.components.ScaleStableImageView
        android:id="@+id/conversation_background"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        tools:ignore="ContentDescription"
        android:scaleType="centerCrop" />

    <org.thoughtcrime.securesms.components.InputAwareLayout
            android:id="@+id/layout_container"
            android:layout_width="match_parent"
            android:layout_height="match_parent">

        <LinearLayout android:id="@+id/conversation_container"
                      android:layout_width="match_parent"
                      android:layout_height="match_parent"
                      android:orientation="vertical"
                      android:paddingTop="?attr/actionBarSize"
                      android:gravity="bottom"
                      android:clipToPadding="false"
                      android:clipChildren="false">

            <FrameLayout android:id="@+id/fragment_content"
                         android:layout_width="match_parent"
                         android:layout_height="0dp"
                         android:layout_weight="1" />

            <ViewStub
                    android:id="@+id/attachment_editor_stub"
                    android:inflatedId="@+id/attachment_editor"
                    android:layout="@layout/conversation_activity_attachment_editor_stub"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"/>

            <org.thoughtcrime.securesms.messagerequests.MessageRequestsBottomView
                android:id="@+id/conversation_activity_message_request_bottom_bar"
                android:background="?android:attr/windowBackground"
                android:visibility="gone"
                android:clickable="true"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:paddingLeft="16dp"
                android:paddingStart="16dp"
                android:paddingRight="16dp"
                android:paddingEnd="16dp"
                android:focusable="true" />

            <include layout="@layout/conversation_input_panel"/>

            <FrameLayout
                android:id="@+id/emoji_picker_container"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                />

        </LinearLayout>
    </org.thoughtcrime.securesms.components.InputAwareLayout>
</RelativeLayout>
