<?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:id="@+id/ChatView"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingBottom="@dimen/activity_vertical_margin"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    tools:context=".ChatActivity" >

    <TextView
        android:id="@+id/account"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_marginBottom="10dp"
        android:gravity="center_horizontal" >
    </TextView>

    <ListView
        android:id="@+id/messages"
        android:layout_width="fill_parent"
        android:layout_height="match_parent"
        android:layout_below="@id/account"
        android:transcriptMode="alwaysScroll"
        android:stackFromBottom="true"
        android:divider="#00000000"
        android:dividerHeight="10dp"
        android:layout_above="@id/text" >
    </ListView>

    <EditText
        android:id="@+id/text"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_toStartOf="@id/sendButton"
        android:textSize="18sp"
        android:inputType="textMultiLine|textShortMessage|textCapSentences"
        android:scrollHorizontally="false"
        android:autofillHints="text"
        android:hint="@string/new_message"
        android:textColorHint="@color/colorSecondaryDark" >
    </EditText>

    <ImageButton
        android:id="@+id/sendButton"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentEnd="true"
        android:layout_alignParentBottom="true"
        android:layout_marginBottom="2dp"
        android:paddingTop="10dp"
        android:src="@drawable/send"
        android:background="@null"
        android:contentDescription="@string/send" >
    </ImageButton>

</RelativeLayout>
