<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2013, Redsolution LTD. All rights reserved.

     This file is part of Xabber project; you can redistribute it and/or
     modify it under the terms of the GNU General Public License, Version 3.

     Xabber is distributed in the hope that it will be useful, but
     WITHOUT ANY WARRANTY; without even the implied warranty of
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
     See the GNU General Public License for more details.

     You should have received a copy of the GNU General Public License,
     along with this program. If not, see http://www.gnu.org/licenses/.
-->
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    >
    <include layout="@layout/contact_title" />
    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_weight="1"
        >
        <ListView
            android:id="@android:id/list"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_weight="1"
            android:padding="4dip"
            android:stackFromBottom="true"
            android:transcriptMode="normal"
            android:smoothScrollbar="false"
            />
        <TextView
            android:id="@+id/chat_page"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:padding="4dip"
            android:textSize="12sp"
            android:gravity="center"
            android:visibility="gone"
            android:background="?android:attr/colorBackground"
            android:text="@string/chat_page"
            />
    </RelativeLayout>
    <LinearLayout
        android:orientation="horizontal"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:paddingTop="4dip">
        <EditText
            android:id="@+id/chat_input"
            android:layout_weight="1"
			android:inputType="textShortMessage|textAutoCorrect|textCapSentences|textMultiLine"
			android:imeOptions="actionSend|flagNoEnterAction"
            android:cursorVisible="true"
            android:hint="@string/chat_input_hint"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:maxLines="5"
            android:scrollbars="vertical"
            android:fadingEdge="vertical"
            />
        <Button
            android:text="@string/chat_send"
            android:id="@+id/chat_send"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            />
    </LinearLayout>
</LinearLayout>
