1<?xml version="1.0" encoding="utf-8"?>
2<layout xmlns:android="http://schemas.android.com/apk/res/android"
3 xmlns:app="http://schemas.android.com/apk/res-auto">
4
5 <RelativeLayout xmlns:tools="http://schemas.android.com/tools"
6 android:layout_width="match_parent"
7 android:layout_height="match_parent">
8
9 <com.google.android.material.tabs.TabLayout
10 android:visibility="gone"
11 android:id="@+id/tab_layout"
12 android:layout_width="match_parent"
13 android:layout_height="30dp"
14 android:elevation="@dimen/toolbar_elevation"
15 app:tabGravity="fill"
16 app:tabMode="scrollable" />
17
18 <androidx.viewpager.widget.ViewPager
19 android:id="@+id/conversation_view_pager"
20 android:layout_below="@id/tab_layout"
21 android:layout_width="fill_parent"
22 android:layout_height="fill_parent">
23
24 <RelativeLayout
25 android:layout_width="fill_parent"
26 android:layout_height="fill_parent">
27
28 <ListView
29 android:id="@+id/messages_view"
30 android:layout_width="fill_parent"
31 android:layout_height="wrap_content"
32 android:layout_above="@+id/snackbar"
33 android:layout_alignParentStart="true"
34 android:layout_alignParentTop="true"
35 android:divider="@null"
36 android:dividerHeight="0dp"
37 android:listSelector="@android:color/transparent"
38 android:stackFromBottom="true"
39 android:transcriptMode="normal"
40 tools:listitem="@layout/item_message_sent" />
41
42 <LinearLayout
43 android:id="@+id/context_preview"
44 android:visibility="gone"
45 android:layout_alignParentStart="true"
46 android:layout_alignParentLeft="true"
47 android:layout_above="@+id/textsend"
48 android:layout_width="fill_parent"
49 android:layout_height="wrap_content"
50 android:minHeight="40dp"
51 android:paddingTop="8dp"
52 android:paddingLeft="8dp"
53 android:paddingRight="14dp"
54 android:orientation="horizontal"
55 android:background="@drawable/textsend">
56
57 <ImageView
58 android:src="@drawable/ic_reply_24dp"
59 android:layout_width="20dp"
60 android:layout_height="20dp"
61 android:layout_marginRight="8dp"
62 android:contentDescription="Reply to" />
63
64 <TextView
65 android:id="@+id/context_preview_text"
66 android:layout_weight="1"
67 android:layout_width="0dp"
68 android:layout_height="wrap_content" />
69
70 <ImageButton
71 android:id="@+id/context_preview_cancel"
72 android:layout_width="20dp"
73 android:layout_height="20dp"
74 android:padding="0dp"
75 android:layout_gravity="center_vertical"
76 android:background="@android:color/transparent"
77 android:src="@drawable/ic_cancel_24dp"
78 android:contentDescription="Cancel" />
79 </LinearLayout>
80
81 <RelativeLayout
82 android:id="@+id/textsend"
83 android:layout_width="match_parent"
84 android:layout_height="wrap_content"
85 android:layout_alignParentStart="true"
86 android:layout_alignParentBottom="true"
87 android:paddingHorizontal="8dp"
88 android:paddingVertical="6dp">
89
90 <LinearLayout
91 android:id="@+id/input_layout"
92 android:layout_width="wrap_content"
93 android:layout_height="wrap_content"
94 android:layout_centerVertical="true"
95 android:layout_toStartOf="@+id/textSendButton"
96 android:layout_toEndOf="@+id/thread_identicon_layout"
97 android:background="@drawable/background_message_bubble"
98 android:backgroundTint="?colorTertiaryContainer"
99 android:orientation="vertical"
100 android:paddingHorizontal="16dp"
101 android:paddingVertical="8dp">
102
103 <TextView
104 android:id="@+id/text_input_hint"
105 android:layout_width="wrap_content"
106 android:layout_height="wrap_content"
107 android:layout_marginBottom="8sp"
108 android:maxLines="1"
109 android:textAppearance="?textAppearanceBodySmall"
110 android:textColor="?colorOnTertiaryContainer"
111 android:visibility="visible"
112 tools:text="@string/private_message_to" />
113
114 <androidx.recyclerview.widget.RecyclerView
115 android:id="@+id/media_preview"
116 android:layout_width="wrap_content"
117 android:layout_height="wrap_content"
118 android:orientation="horizontal"
119 android:requiresFadingEdge="horizontal"
120 android:visibility="gone"
121 app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
122 tools:listitem="@layout/item_media_preview">
123
124 </androidx.recyclerview.widget.RecyclerView>
125
126 <eu.siacs.conversations.ui.widget.EditMessage
127 android:id="@+id/textinput_subject"
128 android:layout_width="match_parent"
129 android:layout_height="wrap_content"
130 android:hint="Subject"
131 android:textColor="?colorOnTertiaryContainer"
132 android:textColorHint="@color/hint_on_tertiary_container"
133 android:maxLines="1"
134 android:padding="8dp"
135 android:imeOptions="flagNoExtractUi"
136 android:inputType="textShortMessage|textMultiLine|textCapSentences"
137 android:visibility="gone" />
138
139 <eu.siacs.conversations.ui.widget.EditMessage
140 android:id="@+id/textinput"
141 android:layout_width="match_parent"
142 android:layout_height="wrap_content"
143 android:background="@android:color/transparent"
144 android:ems="10"
145 android:imeOptions="flagNoExtractUi|actionSend"
146 android:inputType="textShortMessage|textMultiLine|textCapSentences"
147 android:maxLines="8"
148 android:minHeight="32dp"
149 android:textColor="?colorOnTertiaryContainer"
150 android:textColorHint="@color/hint_on_tertiary_container"
151 android:minLines="1">
152
153 <requestFocus />
154 </eu.siacs.conversations.ui.widget.EditMessage>
155
156 </LinearLayout>
157
158 <RelativeLayout
159 android:id="@+id/thread_identicon_layout"
160 android:layout_width="30dp"
161 android:layout_height="30dp"
162 android:layout_alignParentStart="true"
163 android:layout_alignParentLeft="true"
164 android:layout_centerVertical="true"
165 android:layout_marginEnd="8dp"
166 android:background="@drawable/thread_hint">
167
168 <com.lelloman.identicon.view.GithubIdenticonView
169 android:id="@+id/thread_identicon"
170 android:alpha="0"
171 android:layout_width="18dp"
172 android:layout_height="18dp"
173 android:layout_centerVertical="true"
174 android:contentDescription="Thread Marker" />
175 <ImageView
176 android:id="@+id/thread_identicon_lock"
177 android:layout_width="10dp"
178 android:layout_height="10dp"
179 android:layout_alignParentTop="true"
180 android:layout_alignParentEnd="true"
181 android:layout_alignParentRight="true"
182 android:visibility="gone"
183 android:contentDescription="Thread Locked" />
184
185 </RelativeLayout>
186
187 <com.google.android.material.button.MaterialButton
188 android:id="@+id/textSendButton"
189 style="?attr/materialIconButtonFilledTonalStyle"
190 android:layout_width="wrap_content"
191 android:layout_height="wrap_content"
192 android:layout_alignParentEnd="true"
193 android:layout_centerVertical="true"
194 android:layout_marginStart="2dp"
195 android:backgroundTint="?colorSurfaceContainerHigh"
196 android:contentDescription="@string/send_message"
197 app:icon="@drawable/ic_send_24dp"
198 app:iconSize="32dp" />
199
200 <com.google.android.material.button.MaterialButton
201 style="?attr/materialIconButtonFilledTonalStyle"
202 android:id="@+id/request_voice"
203 android:visibility="gone"
204 android:layout_width="wrap_content"
205 android:layout_height="48dp"
206 android:layout_marginRight="8dp"
207 android:layout_alignParentEnd="true"
208 android:layout_alignParentRight="true"
209 android:layout_centerVertical="true"
210 android:text="Request to Speak" />
211 </RelativeLayout>
212
213 <com.google.android.material.floatingactionbutton.FloatingActionButton
214 android:id="@+id/scroll_to_bottom_button"
215 style="?attr/floatingActionButtonSmallSurfaceStyle"
216 android:layout_width="wrap_content"
217 android:layout_height="wrap_content"
218 android:layout_alignBottom="@+id/messages_view"
219 android:layout_alignParentEnd="true"
220 android:src="@drawable/ic_keyboard_double_arrow_down_24dp"
221 android:visibility="visible"
222 app:useCompatPadding="true" />
223
224 <eu.siacs.conversations.ui.widget.UnreadCountCustomView
225 android:id="@+id/unread_count_custom_view"
226 android:layout_width="18sp"
227 android:layout_height="18sp"
228 android:layout_alignTop="@+id/scroll_to_bottom_button"
229 android:layout_alignEnd="@+id/scroll_to_bottom_button"
230 android:layout_marginTop="16dp"
231 android:layout_marginEnd="8dp"
232 android:elevation="8dp"
233 android:visibility="gone"
234 app:backgroundColor="?colorTertiaryContainer"
235 app:textColor="?colorOnTertiaryContainer"
236 tools:ignore="RtlCompat" />
237
238 <RelativeLayout
239 android:id="@+id/snackbar"
240 android:layout_width="fill_parent"
241 android:layout_height="wrap_content"
242 android:layout_above="@+id/textsend"
243 android:layout_marginLeft="8dp"
244 android:layout_marginRight="8dp"
245 android:layout_marginBottom="4dp"
246 android:background="@drawable/snackbar"
247 android:minHeight="48dp"
248 android:visibility="visible">
249
250 <TextView
251 android:id="@+id/snackbar_message"
252 android:layout_width="wrap_content"
253 android:layout_height="wrap_content"
254 android:layout_alignParentStart="true"
255 android:layout_centerVertical="true"
256 android:layout_marginStart="24dp"
257 android:layout_toStartOf="@+id/snackbar_action"
258 android:textColor="?colorOnSurfaceInverse"
259 tools:text="@string/conference_kicked" />
260
261 <TextView
262 android:id="@+id/snackbar_action"
263 android:layout_width="wrap_content"
264 android:layout_height="wrap_content"
265 android:layout_alignParentEnd="true"
266 android:layout_centerVertical="true"
267 android:paddingLeft="24dp"
268 android:paddingTop="16dp"
269 android:paddingRight="24dp"
270 android:paddingBottom="16dp"
271 android:textAllCaps="true"
272 android:textColor="?colorOnSurfaceInverse"
273 android:textStyle="bold"
274 tools:text="@string/leave" />
275 </RelativeLayout>
276
277 </RelativeLayout>
278
279 <RelativeLayout
280 android:layout_width="fill_parent"
281 android:layout_height="fill_parent">
282
283 <ListView
284 android:id="@+id/commands_view"
285 android:layout_width="fill_parent"
286 android:layout_height="wrap_content"
287 android:layout_alignParentStart="true"
288 android:layout_alignParentLeft="true"
289 android:layout_alignParentTop="true"
290 android:divider="@android:color/transparent"
291 android:dividerHeight="0dp"></ListView>
292
293 <TextView
294 android:id="@+id/commands_note"
295 android:layout_width="match_parent"
296 android:layout_height="wrap_content"
297 android:layout_below="@+id/commands_view"
298 android:visibility="gone"
299 android:text="If you have made payment via Bitcoin, eTransfer, or mail, hold tight for your notification. Otherwise you can pick up where you left off (you may be asked a few of the same questions but it will generally not ask you to pay again if you already did, etc)."
300 android:gravity="center"
301 android:minHeight="?android:attr/listPreferredItemHeightSmall"
302 android:paddingLeft="8dp"
303 android:paddingRight="8dp"
304 android:textAppearance="?textAppearanceBodyMedium" />
305
306 <ProgressBar
307 android:id="@+id/commands_view_progressbar"
308 android:layout_width="match_parent"
309 android:layout_height="130dp"
310 android:paddingLeft="8dp"
311 android:paddingRight="8dp"
312 android:paddingBottom="16dp" />
313
314 </RelativeLayout>
315
316 </androidx.viewpager.widget.ViewPager>
317
318 </RelativeLayout>
319</layout>