<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/chat_toolbar"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical">

    <android.support.v7.widget.RecyclerView
        android:id="@+id/suggests_list"
        android:layout_width="match_parent"
        android:layout_height="@dimen/sp_suggest_container_height"
        android:layout_above="@+id/sender_section" />

    <RelativeLayout
        android:id="@+id/sender_section"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:background="@android:color/white">



        <FrameLayout
            android:id="@+id/actions"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentEnd="true"
            android:layout_alignParentRight="true"
            android:layout_centerVertical="true">

            <ImageButton
                android:id="@+id/send_btn"
                android:layout_width="@dimen/material_48"
                android:layout_height="@dimen/material_48"

                android:background="?android:attr/selectableItemBackground"
                android:contentDescription="@null"
                android:src="@drawable/ic_send" />

            <ImageButton
                android:id="@+id/attach_btn"
                android:layout_width="@dimen/material_48"
                android:layout_height="@dimen/material_48"

                android:background="?android:attr/selectableItemBackground"
                android:contentDescription="@null"
                android:src="@drawable/ic_send" />
        </FrameLayout>

        <EditText
            android:id="@+id/editText"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerVertical="true"
            android:layout_toEndOf="@+id/stickers_btn"
            android:layout_toLeftOf="@id/actions"
            android:layout_toRightOf="@+id/stickers_btn"
            android:layout_toStartOf="@id/actions"
            android:background="@android:color/transparent"
            android:gravity="center_vertical"
            android:hint="@string/message"
            android:nextFocusLeft="@id/editText"
            android:nextFocusUp="@id/editText"
            android:textSize="@dimen/text_14" />


        <vc908.stickerfactory.ui.view.BadgedStickersButton
            android:id="@+id/stickers_btn"
            android:layout_width="@dimen/material_48"
            android:layout_height="@dimen/material_48"
            android:layout_centerVertical="true"
            android:background="?android:attr/selectableItemBackground" />

    </RelativeLayout>

    <FrameLayout
        android:id="@+id/frame"
        android:layout_width="match_parent"
        android:layout_height="240dp"
        android:layout_alignParentBottom="true" />
</LinearLayout>