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:fitsSystemWindows="true"
10 android:orientation="vertical">
11
12 <com.google.android.material.appbar.AppBarLayout
13 android:layout_width="match_parent"
14 android:layout_height="wrap_content">
15
16 <com.google.android.material.appbar.MaterialToolbar
17 android:id="@+id/toolbar"
18 android:layout_width="match_parent"
19 android:layout_height="wrap_content"
20 android:minHeight="?attr/actionBarSize" />
21
22 </com.google.android.material.appbar.AppBarLayout>
23
24 <ScrollView
25 android:layout_width="fill_parent"
26 android:layout_height="fill_parent">
27
28 <LinearLayout
29 android:id="@+id/muc_main_layout"
30 android:layout_width="fill_parent"
31 android:layout_height="wrap_content"
32 android:orientation="vertical">
33
34 <com.google.android.material.card.MaterialCardView
35 android:layout_width="match_parent"
36 android:layout_height="wrap_content"
37 android:layout_marginLeft="@dimen/activity_horizontal_margin"
38 android:layout_marginTop="@dimen/activity_vertical_margin"
39 android:layout_marginRight="@dimen/activity_horizontal_margin"
40 android:layout_marginBottom="@dimen/activity_vertical_margin">
41
42 <LinearLayout
43 android:layout_width="match_parent"
44 android:layout_height="wrap_content"
45 android:orientation="vertical"
46 android:padding="@dimen/card_padding_regular">
47
48 <RelativeLayout
49 android:layout_width="fill_parent"
50 android:layout_height="wrap_content"
51 android:layout_marginBottom="32dp">
52
53 <com.makeramen.roundedimageview.RoundedImageView
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 android:layout_marginEnd="@dimen/avatar_item_distance"
59 app:riv_corner_radius="8dp" />
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:textAppearance="?textAppearanceTitleMedium" />
91 </LinearLayout>
92
93
94 <LinearLayout
95 android:id="@+id/muc_editor"
96 android:layout_width="wrap_content"
97 android:layout_height="wrap_content"
98 android:layout_alignParentStart="true"
99 android:layout_toStartOf="@+id/edit_muc_name_button"
100 android:orientation="vertical"
101 android:visibility="gone">
102
103 <com.google.android.material.textfield.TextInputLayout
104 android:layout_width="match_parent"
105 android:layout_height="wrap_content">
106
107 <EditText
108 android:id="@+id/muc_edit_title"
109 android:layout_width="match_parent"
110 android:layout_height="wrap_content"
111 android:hint="@string/group_chat_name" />
112 </com.google.android.material.textfield.TextInputLayout>
113
114 <com.google.android.material.textfield.TextInputLayout
115 android:layout_width="match_parent"
116 android:layout_height="wrap_content">
117
118 <EditText
119 android:id="@+id/muc_edit_subject"
120 android:layout_width="match_parent"
121 android:layout_height="wrap_content"
122 android:hint="@string/topic" />
123 </com.google.android.material.textfield.TextInputLayout>
124
125 </LinearLayout>
126
127 <ImageButton
128 android:id="@+id/edit_muc_name_button"
129 android:layout_width="wrap_content"
130 android:layout_height="wrap_content"
131 android:layout_alignParentTop="true"
132 android:layout_alignParentEnd="true"
133 android:background="?attr/selectableItemBackgroundBorderless"
134 android:padding="@dimen/image_button_padding"
135 android:src="@drawable/ic_edit_24dp" />
136 </RelativeLayout>
137 </LinearLayout>
138 </RelativeLayout>
139
140 <RelativeLayout
141 android:id="@+id/muc_settings"
142 android:layout_width="fill_parent"
143 android:layout_height="wrap_content">
144
145 <TextView
146 android:id="@+id/muc_conference_type"
147 android:layout_width="wrap_content"
148 android:layout_height="wrap_content"
149 android:layout_alignParentStart="true"
150 android:layout_centerVertical="true"
151 android:layout_toStartOf="@+id/change_conference_button"
152 android:textAppearance="?textAppearanceBodyMedium" />
153
154 <ImageButton
155 android:id="@+id/change_conference_button"
156 style="?android:attr/buttonStyleSmall"
157 android:layout_width="wrap_content"
158 android:layout_height="wrap_content"
159 android:layout_alignParentEnd="true"
160 android:layout_centerVertical="true"
161 android:layout_gravity="center_horizontal"
162 android:background="?attr/selectableItemBackgroundBorderless"
163 android:contentDescription="@string/edit_configuration"
164 android:padding="@dimen/image_button_padding"
165 android:src="@drawable/ic_settings_24dp" />
166 </RelativeLayout>
167
168 <TableLayout
169 android:id="@+id/muc_info_more"
170 android:layout_width="match_parent"
171 android:layout_height="wrap_content"
172 android:shrinkColumns="0"
173 android:stretchColumns="1"
174 android:visibility="gone">
175
176 <TableRow
177 android:layout_width="fill_parent"
178 android:layout_height="match_parent">
179
180 <TextView
181 android:layout_width="wrap_content"
182 android:layout_height="wrap_content"
183 android:ellipsize="end"
184 android:singleLine="true"
185 android:text="@string/server_info_mam"
186 android:textAppearance="?textAppearanceBodyMedium" />
187
188 <TextView
189 android:id="@+id/muc_info_mam"
190 android:layout_width="wrap_content"
191 android:layout_height="wrap_content"
192 android:layout_gravity="end"
193 android:paddingStart="4dp"
194 android:paddingLeft="4dp"
195 android:textAppearance="?textAppearanceBodyMedium" />
196 </TableRow>
197
198 </TableLayout>
199
200 <TextView
201 android:id="@+id/jid"
202 android:layout_width="wrap_content"
203 android:layout_height="wrap_content"
204 android:layout_gravity="end"
205 android:layout_marginTop="32dp"
206 android:textAppearance="?textAppearanceLabelMedium"
207 tools:text="foo@bar.tld" />
208 </LinearLayout>
209 </com.google.android.material.card.MaterialCardView>
210
211 <com.google.android.material.card.MaterialCardView
212 android:id="@+id/users_wrapper"
213 android:layout_width="fill_parent"
214 android:layout_height="wrap_content"
215 android:layout_marginLeft="@dimen/activity_horizontal_margin"
216 android:layout_marginTop="@dimen/activity_vertical_margin"
217 android:layout_marginRight="@dimen/activity_horizontal_margin"
218 android:layout_marginBottom="@dimen/activity_vertical_margin">
219
220 <LinearLayout
221 android:layout_width="match_parent"
222 android:layout_height="wrap_content"
223 android:orientation="vertical"
224 android:padding="@dimen/card_padding_regular">
225
226 <TextView
227 android:id="@+id/no_users_hints"
228 android:layout_width="wrap_content"
229 android:layout_height="wrap_content"
230 android:text="@string/no_users_hint_channel"
231 android:textAppearance="?textAppearanceBodyMedium"
232 android:textColor="?colorOnSurfaceVariant" />
233
234 <androidx.recyclerview.widget.RecyclerView
235 android:id="@+id/users"
236 android:layout_width="match_parent"
237 android:layout_height="wrap_content"
238 android:layout_margin="-2dp"
239 android:orientation="horizontal" />
240
241 <LinearLayout
242 android:layout_width="wrap_content"
243 android:layout_height="match_parent"
244 android:layout_gravity="end"
245 android:layout_marginTop="16dp"
246 android:orientation="horizontal">
247
248 <Button
249 android:id="@+id/invite"
250 style="@style/Widget.Material3.Button.TextButton"
251 android:layout_width="wrap_content"
252 android:layout_height="wrap_content"
253 android:text="@string/invite" />
254
255 <Button
256 android:id="@+id/show_users"
257 style="@style/Widget.Material3.Button.TextButton"
258 android:layout_width="wrap_content"
259 android:layout_height="wrap_content"
260 tools:text="View n Participants" />
261 </LinearLayout>
262 </LinearLayout>
263 </com.google.android.material.card.MaterialCardView>
264
265 <com.google.android.material.card.MaterialCardView
266 android:layout_width="match_parent"
267 android:layout_height="wrap_content"
268 android:layout_marginLeft="@dimen/activity_horizontal_margin"
269 android:layout_marginTop="@dimen/activity_vertical_margin"
270 android:layout_marginRight="@dimen/activity_horizontal_margin"
271 android:layout_marginBottom="@dimen/activity_vertical_margin">
272
273 <LinearLayout
274 android:layout_width="match_parent"
275 android:layout_height="wrap_content"
276 android:orientation="vertical"
277 android:padding="@dimen/card_padding_regular">
278
279 <RelativeLayout
280 android:layout_width="match_parent"
281 android:layout_height="wrap_content">
282
283 <LinearLayout
284 android:layout_width="fill_parent"
285 android:layout_height="wrap_content"
286 android:layout_centerVertical="true"
287 android:orientation="vertical">
288
289 <TextView
290 android:id="@+id/muc_your_nick"
291 android:layout_width="wrap_content"
292 android:layout_height="wrap_content"
293 android:singleLine="true"
294 android:textAppearance="?textAppearanceBodyMedium" />
295
296 <TextView
297 android:id="@+id/muc_role"
298 android:layout_width="wrap_content"
299 android:layout_height="wrap_content"
300 android:singleLine="true"
301 android:textAppearance="?textAppearanceBodyMedium" />
302 </LinearLayout>
303
304 <ImageButton
305 android:id="@+id/edit_nick_button"
306 android:layout_width="wrap_content"
307 android:layout_height="wrap_content"
308 android:layout_alignParentEnd="true"
309 android:layout_centerVertical="true"
310 android:background="?attr/selectableItemBackgroundBorderless"
311 android:contentDescription="@string/edit_nick"
312 android:padding="@dimen/image_button_padding"
313 android:src="@drawable/ic_edit_24dp" />
314 </RelativeLayout>
315
316 <RelativeLayout
317 android:layout_width="fill_parent"
318 android:layout_height="wrap_content">
319
320 <TextView
321 android:id="@+id/notification_status_text"
322 android:layout_width="wrap_content"
323 android:layout_height="wrap_content"
324 android:layout_alignParentStart="true"
325 android:layout_centerVertical="true"
326 android:layout_toStartOf="@+id/notification_status_button"
327 android:text="@string/notify_on_all_messages"
328 android:textAppearance="?textAppearanceBodyMedium" />
329
330 <ImageButton
331 android:id="@+id/notification_status_button"
332 style="?android:attr/buttonStyleSmall"
333 android:layout_width="wrap_content"
334 android:layout_height="wrap_content"
335 android:layout_alignParentEnd="true"
336 android:layout_centerVertical="true"
337 android:layout_gravity="center_horizontal"
338 android:background="?attr/selectableItemBackgroundBorderless"
339 android:contentDescription="@string/change_notification_settings"
340 android:padding="@dimen/image_button_padding"
341 android:src="@drawable/ic_notifications_24dp" />
342 </RelativeLayout>
343
344 <TextView
345 android:id="@+id/details_account"
346 android:layout_width="wrap_content"
347 android:layout_height="wrap_content"
348 android:layout_gravity="end"
349 android:layout_marginTop="32dp"
350 android:text="@string/using_account"
351 android:textAppearance="?textAppearanceLabelMedium" />
352 </LinearLayout>
353 </com.google.android.material.card.MaterialCardView>
354
355 <com.google.android.material.card.MaterialCardView
356 android:id="@+id/media_wrapper"
357 android:layout_width="fill_parent"
358 android:layout_height="wrap_content"
359 android:layout_marginLeft="@dimen/activity_horizontal_margin"
360 android:layout_marginTop="@dimen/activity_vertical_margin"
361 android:layout_marginRight="@dimen/activity_horizontal_margin"
362 android:layout_marginBottom="@dimen/activity_vertical_margin">
363
364 <LinearLayout
365 android:layout_width="match_parent"
366 android:layout_height="wrap_content"
367 android:orientation="vertical"
368 android:padding="@dimen/card_padding_regular">
369
370 <androidx.recyclerview.widget.RecyclerView
371 android:id="@+id/media"
372 android:layout_width="match_parent"
373 android:layout_height="wrap_content"
374 android:layout_margin="-2dp"
375 android:orientation="horizontal" />
376
377 <LinearLayout
378 android:layout_width="wrap_content"
379 android:layout_height="match_parent"
380 android:layout_gravity="end"
381 android:layout_marginTop="16dp"
382 android:orientation="horizontal">
383
384 <Button
385 android:id="@+id/show_media"
386 style="?attr/materialButtonOutlinedStyle"
387 android:layout_width="wrap_content"
388 android:layout_height="wrap_content"
389 android:text="@string/view_media" />
390 </LinearLayout>
391 </LinearLayout>
392 </com.google.android.material.card.MaterialCardView>
393
394 </LinearLayout>
395 </ScrollView>
396 </LinearLayout>
397</layout>