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 xmlns:tools="http://schemas.android.com/tools">
5
6 <LinearLayout
7 android:layout_width="match_parent"
8 android:layout_height="match_parent"
9 android:orientation="vertical">
10
11 <com.google.android.material.appbar.AppBarLayout
12 android:layout_width="match_parent"
13 android:layout_height="wrap_content">
14
15 <com.google.android.material.appbar.MaterialToolbar
16 android:id="@+id/toolbar"
17 android:layout_width="match_parent"
18 android:layout_height="wrap_content"
19 android:minHeight="?attr/actionBarSize" />
20
21 </com.google.android.material.appbar.AppBarLayout>
22
23 <ScrollView
24 android:layout_width="fill_parent"
25 android:layout_height="fill_parent">
26
27 <LinearLayout
28 android:id="@+id/muc_main_layout"
29 android:layout_width="fill_parent"
30 android:layout_height="wrap_content"
31 android:orientation="vertical">
32
33 <com.google.android.material.card.MaterialCardView
34 android:layout_width="match_parent"
35 android:layout_height="wrap_content"
36 android:layout_marginLeft="@dimen/activity_horizontal_margin"
37 android:layout_marginTop="@dimen/activity_vertical_margin"
38 android:layout_marginRight="@dimen/activity_horizontal_margin"
39 android:layout_marginBottom="@dimen/activity_vertical_margin">
40
41 <LinearLayout
42 android:layout_width="match_parent"
43 android:layout_height="wrap_content"
44 android:padding="@dimen/card_padding_regular"
45 android:orientation="vertical">
46
47 <RelativeLayout
48 android:layout_width="fill_parent"
49 android:layout_height="wrap_content"
50 android:layout_marginBottom="32dp"
51 android:paddingHorizontal="@dimen/card_padding_regular">
52
53 <com.google.android.material.imageview.ShapeableImageView
54 android:id="@+id/your_photo"
55 android:layout_width="@dimen/avatar_on_details_screen_size"
56 android:layout_height="@dimen/avatar_on_details_screen_size"
57 android:layout_alignParentStart="true"
58 app:shapeAppearance="@style/ShapeAppearanceOverlay.Photo"
59 android:layout_marginEnd="@dimen/avatar_item_distance" />
60
61 <LinearLayout
62 android:layout_width="fill_parent"
63 android:layout_height="wrap_content"
64 android:layout_alignParentTop="true"
65 android:layout_toEndOf="@+id/your_photo"
66 android:orientation="vertical">
67
68 <RelativeLayout
69 android:layout_width="match_parent"
70 android:layout_height="wrap_content">
71
72 <LinearLayout
73 android:id="@+id/muc_display"
74 android:layout_width="wrap_content"
75 android:layout_height="wrap_content"
76 android:layout_alignParentStart="true"
77 android:layout_toStartOf="@+id/edit_muc_name_button"
78 android:orientation="vertical">
79
80 <TextView
81 android:id="@+id/muc_title"
82 android:layout_width="wrap_content"
83 android:layout_height="wrap_content"
84 android:textAppearance="?textAppearanceTitleLarge" />
85
86 <TextView
87 android:id="@+id/muc_subject"
88 android:layout_width="wrap_content"
89 android:layout_height="wrap_content"
90 android:autoLink="web"
91 android:textAppearance="?textAppearanceTitleMedium" />
92
93 <androidx.constraintlayout.widget.ConstraintLayout
94 android:id="@+id/tags"
95 android:layout_width="wrap_content"
96 android:layout_height="wrap_content"
97 android:layout_marginTop="8sp">
98
99 <androidx.constraintlayout.helper.widget.Flow
100 android:id="@+id/flow_widget"
101 android:layout_width="0dp"
102 android:layout_height="wrap_content"
103 app:flow_horizontalBias="0"
104 app:flow_horizontalGap="8sp"
105 app:flow_horizontalStyle="packed"
106 app:flow_verticalGap="4sp"
107 app:flow_wrapMode="chain"
108 app:layout_constraintEnd_toEndOf="parent"
109 app:layout_constraintStart_toStartOf="parent"
110 app:layout_constraintTop_toTopOf="parent" />
111 </androidx.constraintlayout.widget.ConstraintLayout>
112
113 </LinearLayout>
114
115
116 <LinearLayout
117 android:id="@+id/muc_editor"
118 android:layout_width="wrap_content"
119 android:layout_height="wrap_content"
120 android:layout_alignParentStart="true"
121 android:layout_toStartOf="@+id/edit_muc_name_button"
122 android:orientation="vertical"
123 android:visibility="gone">
124
125 <com.google.android.material.textfield.TextInputLayout
126 android:layout_width="match_parent"
127 android:layout_height="wrap_content">
128
129 <EditText
130 android:id="@+id/muc_edit_title"
131 android:layout_width="match_parent"
132 android:layout_height="wrap_content"
133 android:hint="@string/group_chat_name" />
134 </com.google.android.material.textfield.TextInputLayout>
135
136 <com.google.android.material.textfield.TextInputLayout
137 android:layout_width="match_parent"
138 android:layout_height="wrap_content">
139
140 <EditText
141 android:id="@+id/muc_edit_subject"
142 android:layout_width="match_parent"
143 android:layout_height="wrap_content"
144 android:hint="@string/topic" />
145 </com.google.android.material.textfield.TextInputLayout>
146
147 <com.cheogram.android.TagEditorView
148 android:id="@+id/edit_tags"
149 android:layout_width="match_parent"
150 android:layout_height="wrap_content"
151 android:hint="Tags"
152 android:layout_marginBottom="4dp" />
153
154 </LinearLayout>
155
156 <ImageButton
157 android:id="@+id/edit_muc_name_button"
158 android:layout_width="wrap_content"
159 android:layout_height="wrap_content"
160 android:layout_alignParentTop="true"
161 android:layout_alignParentEnd="true"
162 android:background="?attr/selectableItemBackgroundBorderless"
163 android:padding="@dimen/image_button_padding"
164 android:src="@drawable/ic_edit_24dp" />
165 </RelativeLayout>
166 </LinearLayout>
167 </RelativeLayout>
168
169 <RelativeLayout
170 android:id="@+id/muc_settings"
171 android:layout_width="fill_parent"
172 android:layout_height="wrap_content">
173
174 <TextView
175 android:id="@+id/muc_conference_type"
176 android:layout_width="wrap_content"
177 android:layout_height="wrap_content"
178 android:layout_alignParentStart="true"
179 android:layout_centerVertical="true"
180 android:layout_toStartOf="@+id/change_conference_button"
181 android:textAppearance="?textAppearanceBodyMedium" />
182
183 <ImageButton
184 android:id="@+id/change_conference_button"
185 style="?android:attr/buttonStyleSmall"
186 android:layout_width="wrap_content"
187 android:layout_height="wrap_content"
188 android:layout_alignParentEnd="true"
189 android:layout_centerVertical="true"
190 android:layout_gravity="center_horizontal"
191 android:background="?attr/selectableItemBackgroundBorderless"
192 android:padding="@dimen/image_button_padding"
193 android:src="@drawable/ic_settings_24dp" />
194 </RelativeLayout>
195
196 <TableLayout
197 android:id="@+id/muc_info_more"
198 android:layout_width="match_parent"
199 android:layout_height="wrap_content"
200 android:paddingHorizontal="@dimen/card_padding_regular"
201 android:shrinkColumns="0"
202 android:stretchColumns="1"
203 android:visibility="gone">
204
205 <TableRow
206 android:layout_width="fill_parent"
207 android:layout_height="match_parent">
208
209 <TextView
210 android:layout_width="wrap_content"
211 android:layout_height="wrap_content"
212 android:ellipsize="end"
213 android:singleLine="true"
214 android:text="@string/server_info_mam"
215 android:textAppearance="?textAppearanceBodyMedium" />
216
217 <TextView
218 android:id="@+id/muc_info_mam"
219 android:layout_width="wrap_content"
220 android:layout_height="wrap_content"
221 android:layout_gravity="end"
222 android:paddingStart="4dp"
223 android:paddingLeft="4dp"
224 android:textAppearance="?textAppearanceBodyMedium" />
225 </TableRow>
226
227 </TableLayout>
228
229 <com.google.android.material.button.MaterialButton
230 style="@style/Widget.Material3.Button.ElevatedButton"
231 android:id="@+id/relatedMucs"
232 android:layout_width="wrap_content"
233 android:layout_height="wrap_content"
234 android:layout_gravity="end"
235 android:minWidth="0dp"
236 android:layout_marginTop="32dp"
237 android:text="Related Chats"
238 android:textColor="?attr/colorAccent" />
239
240 <TextView
241 android:id="@+id/jid"
242 android:layout_width="wrap_content"
243 android:layout_height="wrap_content"
244 android:layout_gravity="end"
245 android:layout_marginTop="32dp"
246 android:textAppearance="?textAppearanceLabelMedium"
247 tools:text="foo@bar.tld" />
248
249 <TextView
250 android:id="@+id/truejid"
251 android:visibility="gone"
252 android:layout_width="wrap_content"
253 android:layout_height="wrap_content"
254 android:layout_gravity="end"
255 android:textAppearance="?textAppearanceLabelMedium" />
256 </LinearLayout>
257 </com.google.android.material.card.MaterialCardView>
258
259 <com.google.android.material.card.MaterialCardView
260 android:id="@+id/users_wrapper"
261 android:layout_width="fill_parent"
262 android:layout_height="wrap_content"
263 android:layout_marginLeft="@dimen/activity_horizontal_margin"
264 android:layout_marginTop="@dimen/activity_vertical_margin"
265 android:layout_marginRight="@dimen/activity_horizontal_margin"
266 android:layout_marginBottom="@dimen/activity_vertical_margin">
267
268 <LinearLayout
269 android:layout_width="match_parent"
270 android:layout_height="wrap_content"
271 android:orientation="vertical"
272 android:padding="@dimen/card_padding_regular">
273
274 <TextView
275 android:id="@+id/no_users_hints"
276 android:layout_width="wrap_content"
277 android:layout_height="wrap_content"
278 android:text="@string/no_users_hint_channel"
279 android:textAppearance="?textAppearanceBodyMedium"
280 android:textColor="?colorOnSurfaceVariant" />
281
282 <androidx.recyclerview.widget.RecyclerView
283 android:id="@+id/users"
284 android:layout_width="match_parent"
285 android:layout_height="wrap_content"
286 android:layout_margin="-2dp"
287 android:orientation="horizontal" />
288
289 <LinearLayout
290 android:layout_width="wrap_content"
291 android:layout_height="match_parent"
292 android:layout_gravity="end"
293 android:layout_marginTop="16dp"
294 android:orientation="horizontal">
295
296 <Button
297 android:id="@+id/invite"
298 style="@style/Widget.Material3.Button.TextButton"
299 android:layout_width="wrap_content"
300 android:layout_height="wrap_content"
301 android:text="@string/invite" />
302
303 <Button
304 android:id="@+id/show_users"
305 style="@style/Widget.Material3.Button.TextButton"
306 android:layout_width="wrap_content"
307 android:layout_height="wrap_content"
308 tools:text="View n Participants" />
309 </LinearLayout>
310 </LinearLayout>
311 </com.google.android.material.card.MaterialCardView>
312
313 <com.google.android.material.card.MaterialCardView
314 android:layout_width="match_parent"
315 android:layout_height="wrap_content"
316 android:layout_marginLeft="@dimen/activity_horizontal_margin"
317 android:layout_marginTop="@dimen/activity_vertical_margin"
318 android:layout_marginRight="@dimen/activity_horizontal_margin"
319 android:layout_marginBottom="@dimen/activity_vertical_margin">
320
321 <LinearLayout
322 android:layout_width="match_parent"
323 android:layout_height="wrap_content"
324 android:orientation="vertical"
325 android:padding="@dimen/card_padding_regular">
326
327 <RelativeLayout
328 android:layout_width="match_parent"
329 android:layout_height="wrap_content">
330
331 <LinearLayout
332 android:layout_width="fill_parent"
333 android:layout_height="wrap_content"
334 android:layout_centerVertical="true"
335 android:orientation="vertical">
336
337 <TextView
338 android:id="@+id/muc_your_nick"
339 android:layout_width="wrap_content"
340 android:layout_height="wrap_content"
341 android:singleLine="true"
342 android:textAppearance="?textAppearanceBodyMedium" />
343
344 <TextView
345 android:id="@+id/muc_role"
346 android:layout_width="wrap_content"
347 android:layout_height="wrap_content"
348 android:singleLine="true"
349 android:textAppearance="?textAppearanceBodyMedium" />
350 </LinearLayout>
351
352 <ImageButton
353 android:id="@+id/edit_nick_button"
354 android:layout_width="wrap_content"
355 android:layout_height="wrap_content"
356 android:layout_alignParentEnd="true"
357 android:layout_centerVertical="true"
358 android:background="?attr/selectableItemBackgroundBorderless"
359 android:padding="@dimen/image_button_padding"
360 android:src="@drawable/ic_edit_24dp" />
361 </RelativeLayout>
362
363 <RelativeLayout
364 android:layout_width="fill_parent"
365 android:layout_height="wrap_content">
366
367 <TextView
368 android:id="@+id/notification_status_text"
369 android:layout_width="wrap_content"
370 android:layout_height="wrap_content"
371 android:layout_alignParentStart="true"
372 android:layout_centerVertical="true"
373 android:layout_toStartOf="@+id/notification_status_button"
374 android:text="@string/notify_on_all_messages"
375 android:textAppearance="?textAppearanceBodyMedium" />
376
377 <ImageButton
378 android:id="@+id/notification_status_button"
379 style="?android:attr/buttonStyleSmall"
380 android:layout_width="wrap_content"
381 android:layout_height="wrap_content"
382 android:layout_alignParentEnd="true"
383 android:layout_centerVertical="true"
384 android:layout_gravity="center_horizontal"
385 android:background="?attr/selectableItemBackgroundBorderless"
386 android:padding="@dimen/image_button_padding"
387 android:src="@drawable/ic_notifications_24dp" />
388 </RelativeLayout>
389
390 <TextView
391 android:id="@+id/details_account"
392 android:layout_width="wrap_content"
393 android:layout_height="wrap_content"
394 android:layout_gravity="end"
395 android:layout_marginTop="32dp"
396 android:text="@string/using_account"
397 android:textAppearance="?textAppearanceLabelMedium" />
398 </LinearLayout>
399 </com.google.android.material.card.MaterialCardView>
400
401 <com.google.android.material.card.MaterialCardView
402 android:id="@+id/recent_threads_wrapper"
403 android:layout_width="match_parent"
404 android:layout_height="wrap_content"
405 android:layout_marginBottom="@dimen/activity_vertical_margin"
406 android:layout_marginLeft="@dimen/activity_horizontal_margin"
407 android:layout_marginRight="@dimen/activity_horizontal_margin"
408 android:layout_marginTop="@dimen/activity_vertical_margin">
409
410 <ListView
411 android:id="@+id/recent_threads"
412 android:layout_width="fill_parent"
413 android:layout_height="wrap_content"
414 android:divider="@android:color/transparent"
415 android:dividerHeight="0dp"></ListView>
416
417 </com.google.android.material.card.MaterialCardView>
418
419 <com.google.android.material.card.MaterialCardView
420 android:id="@+id/media_wrapper"
421 android:layout_width="fill_parent"
422 android:layout_height="wrap_content"
423 android:layout_marginLeft="@dimen/activity_horizontal_margin"
424 android:layout_marginTop="@dimen/activity_vertical_margin"
425 android:layout_marginRight="@dimen/activity_horizontal_margin"
426 android:layout_marginBottom="@dimen/activity_vertical_margin">
427
428 <LinearLayout
429 android:layout_width="match_parent"
430 android:layout_height="wrap_content"
431 android:orientation="vertical"
432 android:padding="@dimen/card_padding_regular">
433
434 <androidx.recyclerview.widget.RecyclerView
435 android:id="@+id/media"
436 android:layout_width="match_parent"
437 android:layout_height="wrap_content"
438 android:layout_margin="-2dp"
439 android:orientation="horizontal" />
440
441 <LinearLayout
442 android:layout_width="wrap_content"
443 android:layout_height="match_parent"
444 android:layout_gravity="end"
445 android:layout_marginTop="16dp"
446 android:orientation="horizontal">
447
448 <Button
449 android:id="@+id/show_media"
450 style="?attr/materialButtonOutlinedStyle"
451 android:layout_width="wrap_content"
452 android:layout_height="wrap_content"
453 android:text="@string/view_media" />
454 </LinearLayout>
455 </LinearLayout>
456 </com.google.android.material.card.MaterialCardView>
457
458 </LinearLayout>
459 </ScrollView>
460 </LinearLayout>
461</layout>