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:src="@drawable/ic_lock_24dp"
184 android:contentDescription="Thread Locked" />
185
186 </RelativeLayout>
187
188 <com.google.android.material.button.MaterialButton
189 android:id="@+id/textSendButton"
190 style="?attr/materialIconButtonFilledTonalStyle"
191 android:layout_width="wrap_content"
192 android:layout_height="wrap_content"
193 android:layout_alignParentEnd="true"
194 android:layout_centerVertical="true"
195 android:layout_marginStart="2dp"
196 android:backgroundTint="?colorSurfaceContainerHigh"
197 android:contentDescription="@string/send_message"
198 app:icon="@drawable/ic_send_24dp"
199 app:iconSize="32dp" />
200
201 <com.google.android.material.button.MaterialButton
202 style="?attr/materialIconButtonFilledTonalStyle"
203 android:id="@+id/request_voice"
204 android:visibility="gone"
205 android:layout_width="wrap_content"
206 android:layout_height="48dp"
207 android:layout_marginRight="8dp"
208 android:layout_alignParentEnd="true"
209 android:layout_alignParentRight="true"
210 android:layout_centerVertical="true"
211 android:text="Request to Speak" />
212 </RelativeLayout>
213
214 <com.google.android.material.floatingactionbutton.FloatingActionButton
215 android:id="@+id/scroll_to_bottom_button"
216 style="?attr/floatingActionButtonSmallSurfaceStyle"
217 android:layout_width="wrap_content"
218 android:layout_height="wrap_content"
219 android:layout_alignBottom="@+id/messages_view"
220 android:layout_alignParentEnd="true"
221 android:src="@drawable/ic_keyboard_double_arrow_down_24dp"
222 android:visibility="visible"
223 app:useCompatPadding="true" />
224
225 <eu.siacs.conversations.ui.widget.UnreadCountCustomView
226 android:id="@+id/unread_count_custom_view"
227 android:layout_width="18sp"
228 android:layout_height="18sp"
229 android:layout_alignTop="@+id/scroll_to_bottom_button"
230 android:layout_alignEnd="@+id/scroll_to_bottom_button"
231 android:layout_marginTop="16dp"
232 android:layout_marginEnd="8dp"
233 android:elevation="8dp"
234 android:visibility="gone"
235 app:backgroundColor="?colorTertiaryContainer"
236 app:textColor="?colorOnTertiaryContainer"
237 tools:ignore="RtlCompat" />
238
239 <RelativeLayout
240 android:id="@+id/snackbar"
241 android:layout_width="fill_parent"
242 android:layout_height="wrap_content"
243 android:layout_above="@+id/context_preview"
244 android:layout_marginLeft="8dp"
245 android:layout_marginRight="8dp"
246 android:layout_marginBottom="4dp"
247 android:background="@drawable/snackbar"
248 android:minHeight="48dp"
249 android:visibility="visible">
250
251 <TextView
252 android:id="@+id/snackbar_message"
253 android:layout_width="wrap_content"
254 android:layout_height="wrap_content"
255 android:layout_alignParentStart="true"
256 android:layout_centerVertical="true"
257 android:layout_marginStart="24dp"
258 android:layout_toStartOf="@+id/snackbar_action"
259 android:textColor="?colorOnSurfaceInverse"
260 tools:text="@string/conference_kicked" />
261
262 <TextView
263 android:id="@+id/snackbar_action"
264 android:layout_width="wrap_content"
265 android:layout_height="wrap_content"
266 android:layout_alignParentEnd="true"
267 android:layout_centerVertical="true"
268 android:paddingLeft="24dp"
269 android:paddingTop="16dp"
270 android:paddingRight="24dp"
271 android:paddingBottom="16dp"
272 android:textAllCaps="true"
273 android:textColor="?colorOnSurfaceInverse"
274 android:textStyle="bold"
275 tools:text="@string/leave" />
276 </RelativeLayout>
277
278 </RelativeLayout>
279
280 <RelativeLayout
281 android:layout_width="fill_parent"
282 android:layout_height="fill_parent">
283
284 <ListView
285 android:id="@+id/commands_view"
286 android:layout_width="fill_parent"
287 android:layout_height="wrap_content"
288 android:layout_alignParentStart="true"
289 android:layout_alignParentLeft="true"
290 android:layout_alignParentTop="true"
291 android:divider="@android:color/transparent"
292 android:dividerHeight="0dp"></ListView>
293
294 <TextView
295 android:id="@+id/commands_note"
296 android:layout_width="match_parent"
297 android:layout_height="wrap_content"
298 android:layout_below="@+id/commands_view"
299 android:visibility="gone"
300 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)."
301 android:gravity="center"
302 android:minHeight="?android:attr/listPreferredItemHeightSmall"
303 android:paddingLeft="8dp"
304 android:paddingRight="8dp"
305 android:textAppearance="?textAppearanceBodyMedium" />
306
307 <ProgressBar
308 android:id="@+id/commands_view_progressbar"
309 android:layout_width="match_parent"
310 android:layout_height="130dp"
311 android:paddingLeft="8dp"
312 android:paddingRight="8dp"
313 android:paddingBottom="16dp" />
314
315 </RelativeLayout>
316
317 </androidx.viewpager.widget.ViewPager>
318
319 </RelativeLayout>
320</layout>