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:textCursorDrawable="@drawable/cursor_on_tertiary_container"
134 android:maxLines="1"
135 android:padding="8dp"
136 android:imeOptions="flagNoExtractUi"
137 android:inputType="textShortMessage|textMultiLine|textCapSentences"
138 android:visibility="gone" />
139
140 <eu.siacs.conversations.ui.widget.EditMessage
141 android:id="@+id/textinput"
142 android:layout_width="match_parent"
143 android:layout_height="wrap_content"
144 android:background="@android:color/transparent"
145 android:ems="10"
146 android:imeOptions="flagNoExtractUi|actionSend"
147 android:inputType="textShortMessage|textMultiLine|textCapSentences"
148 android:maxLines="8"
149 android:minHeight="32dp"
150 android:textColor="?colorOnTertiaryContainer"
151 android:textColorHint="@color/hint_on_tertiary_container"
152 android:minLines="1">
153
154 <requestFocus />
155 </eu.siacs.conversations.ui.widget.EditMessage>
156
157 </LinearLayout>
158
159 <RelativeLayout
160 android:id="@+id/thread_identicon_layout"
161 android:layout_width="30dp"
162 android:layout_height="30dp"
163 android:layout_alignParentStart="true"
164 android:layout_alignParentLeft="true"
165 android:layout_centerVertical="true"
166 android:layout_marginEnd="8dp"
167 android:background="@drawable/thread_hint">
168
169 <com.lelloman.identicon.view.GithubIdenticonView
170 android:id="@+id/thread_identicon"
171 android:alpha="0"
172 android:layout_width="18dp"
173 android:layout_height="18dp"
174 android:layout_centerVertical="true"
175 android:contentDescription="Thread Marker" />
176 <ImageView
177 android:id="@+id/thread_identicon_lock"
178 android:layout_width="10dp"
179 android:layout_height="10dp"
180 android:layout_alignParentTop="true"
181 android:layout_alignParentEnd="true"
182 android:layout_alignParentRight="true"
183 android:visibility="gone"
184 android:src="@drawable/ic_lock_24dp"
185 android:contentDescription="Thread Locked" />
186
187 </RelativeLayout>
188
189 <com.google.android.material.button.MaterialButton
190 android:id="@+id/textSendButton"
191 style="?attr/materialIconButtonFilledTonalStyle"
192 android:layout_width="wrap_content"
193 android:layout_height="wrap_content"
194 android:layout_alignParentEnd="true"
195 android:layout_centerVertical="true"
196 android:layout_marginStart="2dp"
197 android:backgroundTint="?colorSurfaceContainerHigh"
198 android:contentDescription="@string/send_message"
199 app:icon="@drawable/ic_send_24dp"
200 app:iconSize="32dp" />
201
202 <com.google.android.material.button.MaterialButton
203 style="?attr/materialIconButtonFilledTonalStyle"
204 android:id="@+id/request_voice"
205 android:visibility="gone"
206 android:layout_width="wrap_content"
207 android:layout_height="48dp"
208 android:layout_marginRight="8dp"
209 android:layout_alignParentEnd="true"
210 android:layout_alignParentRight="true"
211 android:layout_centerVertical="true"
212 android:text="Request to Speak" />
213 </RelativeLayout>
214
215 <com.google.android.material.floatingactionbutton.FloatingActionButton
216 android:id="@+id/scroll_to_bottom_button"
217 style="?attr/floatingActionButtonSmallSurfaceStyle"
218 android:layout_width="wrap_content"
219 android:layout_height="wrap_content"
220 android:layout_alignBottom="@+id/messages_view"
221 android:layout_alignParentEnd="true"
222 android:src="@drawable/ic_keyboard_double_arrow_down_24dp"
223 android:visibility="visible"
224 app:useCompatPadding="true" />
225
226 <eu.siacs.conversations.ui.widget.UnreadCountCustomView
227 android:id="@+id/unread_count_custom_view"
228 android:layout_width="18sp"
229 android:layout_height="18sp"
230 android:layout_alignTop="@+id/scroll_to_bottom_button"
231 android:layout_alignEnd="@+id/scroll_to_bottom_button"
232 android:layout_marginTop="16dp"
233 android:layout_marginEnd="8dp"
234 android:elevation="8dp"
235 android:visibility="gone"
236 app:backgroundColor="?colorTertiaryContainer"
237 app:textColor="?colorOnTertiaryContainer"
238 tools:ignore="RtlCompat" />
239
240 <RelativeLayout
241 android:id="@+id/snackbar"
242 android:layout_width="fill_parent"
243 android:layout_height="wrap_content"
244 android:layout_above="@+id/context_preview"
245 android:layout_marginLeft="8dp"
246 android:layout_marginRight="8dp"
247 android:layout_marginBottom="4dp"
248 android:background="@drawable/snackbar"
249 android:minHeight="48dp"
250 android:visibility="visible">
251
252 <TextView
253 android:id="@+id/snackbar_message"
254 android:layout_width="wrap_content"
255 android:layout_height="wrap_content"
256 android:layout_alignParentStart="true"
257 android:layout_centerVertical="true"
258 android:layout_marginStart="24dp"
259 android:layout_toStartOf="@+id/snackbar_action"
260 android:textColor="?colorOnSurfaceInverse"
261 tools:text="@string/conference_kicked" />
262
263 <TextView
264 android:id="@+id/snackbar_action"
265 android:layout_width="wrap_content"
266 android:layout_height="wrap_content"
267 android:layout_alignParentEnd="true"
268 android:layout_centerVertical="true"
269 android:paddingLeft="24dp"
270 android:paddingTop="16dp"
271 android:paddingRight="24dp"
272 android:paddingBottom="16dp"
273 android:textAllCaps="true"
274 android:textColor="?colorOnSurfaceInverse"
275 android:textStyle="bold"
276 tools:text="@string/leave" />
277 </RelativeLayout>
278
279 </RelativeLayout>
280
281 <RelativeLayout
282 android:layout_width="fill_parent"
283 android:layout_height="fill_parent">
284
285 <ListView
286 android:id="@+id/commands_view"
287 android:layout_width="fill_parent"
288 android:layout_height="wrap_content"
289 android:layout_alignParentStart="true"
290 android:layout_alignParentLeft="true"
291 android:layout_alignParentTop="true"
292 android:divider="@android:color/transparent"
293 android:dividerHeight="0dp"></ListView>
294
295 <TextView
296 android:id="@+id/commands_note"
297 android:layout_width="match_parent"
298 android:layout_height="wrap_content"
299 android:layout_below="@+id/commands_view"
300 android:visibility="gone"
301 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)."
302 android:gravity="center"
303 android:minHeight="?android:attr/listPreferredItemHeightSmall"
304 android:paddingLeft="8dp"
305 android:paddingRight="8dp"
306 android:textAppearance="?textAppearanceBodyMedium" />
307
308 <ProgressBar
309 android:id="@+id/commands_view_progressbar"
310 android:layout_width="match_parent"
311 android:layout_height="130dp"
312 android:paddingLeft="8dp"
313 android:paddingRight="8dp"
314 android:paddingBottom="16dp" />
315
316 </RelativeLayout>
317
318 </androidx.viewpager.widget.ViewPager>
319
320 </RelativeLayout>
321</layout>