59 lines
2.1 KiB
XML
59 lines
2.1 KiB
XML
<?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/ChatsView"
|
|
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=".ChatsActivity" >
|
|
|
|
<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/chats"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_below="@+id/account"
|
|
android:layout_above="@id/peer"
|
|
android:layout_marginBottom="10dp"
|
|
android:transcriptMode="alwaysScroll"
|
|
android:stackFromBottom="true"
|
|
android:divider="#00000000"
|
|
android:dividerHeight="16dp" >
|
|
</ListView>
|
|
|
|
<AutoCompleteTextView
|
|
android:id="@+id/peer"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_toStartOf="@+id/plusButton"
|
|
android:textSize="18sp"
|
|
android:inputType="textEmailAddress"
|
|
android:hint="@string/new_chat_peer"
|
|
android:textColorHint="@color/colorSecondaryDark" >
|
|
</AutoCompleteTextView>
|
|
|
|
<ImageButton
|
|
android:id="@+id/plusButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_marginBottom="2dp"
|
|
android:src="@drawable/plus"
|
|
android:background="@null"
|
|
android:contentDescription="@string/add" >
|
|
</ImageButton>
|
|
|
|
</RelativeLayout>
|