1<?xml version="1.0" encoding="utf-8"?>
2<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 xmlns:tools="http://schemas.android.com/tools"
4 android:layout_width="match_parent"
5 android:layout_height="match_parent"
6 android:background="?attr/color_background_secondary">
7
8 <ListView
9 android:id="@+id/messages_view"
10 android:layout_width="fill_parent"
11 android:layout_height="wrap_content"
12 android:layout_above="@+id/snackbar"
13 android:layout_alignParentLeft="true"
14 android:layout_alignParentTop="true"
15 android:background="?attr/color_background_secondary"
16 android:divider="@null"
17 android:dividerHeight="0dp"
18 android:listSelector="@android:color/transparent"
19 android:stackFromBottom="true"
20 android:transcriptMode="normal"
21 tools:listitem="@layout/message_sent">
22 </ListView>
23
24 <RelativeLayout
25 android:id="@+id/textsend"
26 android:layout_width="fill_parent"
27 android:layout_height="wrap_content"
28 android:layout_alignParentBottom="true"
29 android:layout_alignParentLeft="true"
30 android:background="?attr/color_background_primary" >
31
32 <eu.siacs.conversations.ui.widget.EditMessage
33 android:id="@+id/textinput"
34 android:layout_width="wrap_content"
35 android:layout_height="wrap_content"
36 android:layout_alignParentLeft="true"
37 android:layout_toLeftOf="@+id/textSendButton"
38 android:background="?attr/color_background_primary"
39 android:ems="10"
40 android:imeOptions="flagNoExtractUi|actionSend"
41 android:inputType="textShortMessage|textMultiLine|textCapSentences"
42 android:minHeight="48dp"
43 android:minLines="1"
44 android:paddingBottom="12dp"
45 android:paddingLeft="8dp"
46 android:paddingRight="8dp"
47 android:paddingTop="12dp"
48 android:textColor="?attr/color_text_primary" >
49
50 <requestFocus />
51 </eu.siacs.conversations.ui.widget.EditMessage>
52
53 <ImageButton
54 android:id="@+id/textSendButton"
55 android:layout_width="48dp"
56 android:layout_height="48dp"
57 android:layout_alignParentRight="true"
58 android:layout_centerVertical="true"
59 android:background="?attr/color_background_primary"
60 android:src="?attr/ic_send_text_offline"
61 android:contentDescription="@string/send_message"/>
62 </RelativeLayout>
63
64 <RelativeLayout
65 android:id="@+id/snackbar"
66 android:layout_width="fill_parent"
67 android:layout_height="wrap_content"
68 android:layout_above="@+id/textsend"
69 android:layout_marginBottom="4dp"
70 android:layout_marginLeft="8dp"
71 android:layout_marginRight="8dp"
72 android:background="@drawable/snackbar"
73 android:minHeight="48dp"
74 android:visibility="gone" >
75
76 <TextView
77 android:id="@+id/snackbar_message"
78 android:layout_width="wrap_content"
79 android:layout_height="wrap_content"
80 android:layout_alignParentLeft="true"
81 android:layout_centerVertical="true"
82 android:layout_toLeftOf="@+id/snackbar_action"
83 android:paddingLeft="24dp"
84 android:textColor="@color/white"
85 android:textSize="?attr/TextSizeBody" />
86
87 <TextView
88 android:id="@+id/snackbar_action"
89 android:layout_width="wrap_content"
90 android:layout_height="wrap_content"
91 android:layout_alignParentRight="true"
92 android:layout_centerVertical="true"
93 android:paddingBottom="16dp"
94 android:paddingLeft="24dp"
95 android:paddingRight="24dp"
96 android:paddingTop="16dp"
97 android:textAllCaps="true"
98 android:textColor="@color/white"
99 android:textSize="?attr/TextSizeBody"
100 android:textStyle="bold" />
101 </RelativeLayout>
102
103</RelativeLayout>