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:orientation="vertical"
45 android:padding="@dimen/card_padding_regular">
46
47 <RelativeLayout
48 android:layout_width="fill_parent"
49 android:layout_height="wrap_content"
50 android:layout_marginBottom="32dp">
51
52 <com.makeramen.roundedimageview.RoundedImageView
53 android:id="@+id/your_photo"
54 android:layout_width="@dimen/avatar_on_details_screen_size"
55 android:layout_height="@dimen/avatar_on_details_screen_size"
56 android:layout_alignParentStart="true"
57 android:layout_marginEnd="@dimen/avatar_item_distance"
58 app:riv_corner_radius="8dp" />
59
60 <LinearLayout
61 android:layout_width="fill_parent"
62 android:layout_height="wrap_content"
63 android:layout_alignParentTop="true"
64 android:layout_toEndOf="@+id/your_photo"
65 android:orientation="vertical">
66
67 <RelativeLayout
68 android:layout_width="match_parent"
69 android:layout_height="wrap_content">
70
71 <LinearLayout
72 android:id="@+id/muc_display"
73 android:layout_width="wrap_content"
74 android:layout_height="wrap_content"
75 android:layout_alignParentStart="true"
76 android:layout_toStartOf="@+id/edit_muc_name_button"
77 android:orientation="vertical">
78
79 <TextView
80 android:id="@+id/muc_title"
81 android:layout_width="wrap_content"
82 android:layout_height="wrap_content"
83 android:textAppearance="?textAppearanceTitleLarge" />
84
85 <TextView
86 android:id="@+id/muc_subject"
87 android:layout_width="wrap_content"
88 android:layout_height="wrap_content"
89 android:autoLink="web"
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:padding="@dimen/image_button_padding"
164 android:src="@drawable/ic_settings_24dp" />
165 </RelativeLayout>
166
167 <TableLayout
168 android:id="@+id/muc_info_more"
169 android:layout_width="match_parent"
170 android:layout_height="wrap_content"
171 android:shrinkColumns="0"
172 android:stretchColumns="1"
173 android:visibility="gone">
174
175 <TableRow
176 android:layout_width="fill_parent"
177 android:layout_height="match_parent">
178
179 <TextView
180 android:layout_width="wrap_content"
181 android:layout_height="wrap_content"
182 android:ellipsize="end"
183 android:singleLine="true"
184 android:text="@string/server_info_mam"
185 android:textAppearance="?textAppearanceBodyMedium" />
186
187 <TextView
188 android:id="@+id/muc_info_mam"
189 android:layout_width="wrap_content"
190 android:layout_height="wrap_content"
191 android:layout_gravity="end"
192 android:paddingStart="4dp"
193 android:paddingLeft="4dp"
194 android:textAppearance="?textAppearanceBodyMedium" />
195 </TableRow>
196
197 </TableLayout>
198
199 <TextView
200 android:id="@+id/jid"
201 android:layout_width="wrap_content"
202 android:layout_height="wrap_content"
203 android:layout_gravity="end"
204 android:layout_marginTop="32dp"
205 android:textAppearance="?textAppearanceLabelMedium"
206 tools:text="foo@bar.tld" />
207 </LinearLayout>
208 </com.google.android.material.card.MaterialCardView>
209
210 <com.google.android.material.card.MaterialCardView
211 android:id="@+id/users_wrapper"
212 android:layout_width="fill_parent"
213 android:layout_height="wrap_content"
214 android:layout_marginLeft="@dimen/activity_horizontal_margin"
215 android:layout_marginTop="@dimen/activity_vertical_margin"
216 android:layout_marginRight="@dimen/activity_horizontal_margin"
217 android:layout_marginBottom="@dimen/activity_vertical_margin">
218
219 <LinearLayout
220 android:layout_width="match_parent"
221 android:layout_height="wrap_content"
222 android:orientation="vertical"
223 android:padding="@dimen/card_padding_regular">
224
225 <TextView
226 android:id="@+id/no_users_hints"
227 android:layout_width="wrap_content"
228 android:layout_height="wrap_content"
229 android:text="@string/no_users_hint_channel"
230 android:textAppearance="?textAppearanceBodyMedium"
231 android:textColor="?colorOnSurfaceVariant" />
232
233 <androidx.recyclerview.widget.RecyclerView
234 android:id="@+id/users"
235 android:layout_width="match_parent"
236 android:layout_height="wrap_content"
237 android:layout_margin="-2dp"
238 android:orientation="horizontal" />
239
240 <LinearLayout
241 android:layout_width="wrap_content"
242 android:layout_height="match_parent"
243 android:layout_gravity="end"
244 android:layout_marginTop="16dp"
245 android:orientation="horizontal">
246
247 <Button
248 android:id="@+id/invite"
249 style="@style/Widget.Material3.Button.TextButton"
250 android:layout_width="wrap_content"
251 android:layout_height="wrap_content"
252 android:text="@string/invite" />
253
254 <Button
255 android:id="@+id/show_users"
256 style="@style/Widget.Material3.Button.TextButton"
257 android:layout_width="wrap_content"
258 android:layout_height="wrap_content"
259 tools:text="View n Participants" />
260 </LinearLayout>
261 </LinearLayout>
262 </com.google.android.material.card.MaterialCardView>
263
264 <com.google.android.material.card.MaterialCardView
265 android:layout_width="match_parent"
266 android:layout_height="wrap_content"
267 android:layout_marginLeft="@dimen/activity_horizontal_margin"
268 android:layout_marginTop="@dimen/activity_vertical_margin"
269 android:layout_marginRight="@dimen/activity_horizontal_margin"
270 android:layout_marginBottom="@dimen/activity_vertical_margin">
271
272 <LinearLayout
273 android:layout_width="match_parent"
274 android:layout_height="wrap_content"
275 android:orientation="vertical"
276 android:padding="@dimen/card_padding_regular">
277
278 <RelativeLayout
279 android:layout_width="match_parent"
280 android:layout_height="wrap_content">
281
282 <LinearLayout
283 android:layout_width="fill_parent"
284 android:layout_height="wrap_content"
285 android:layout_centerVertical="true"
286 android:orientation="vertical">
287
288 <TextView
289 android:id="@+id/muc_your_nick"
290 android:layout_width="wrap_content"
291 android:layout_height="wrap_content"
292 android:singleLine="true"
293 android:textAppearance="?textAppearanceBodyMedium" />
294
295 <TextView
296 android:id="@+id/muc_role"
297 android:layout_width="wrap_content"
298 android:layout_height="wrap_content"
299 android:singleLine="true"
300 android:textAppearance="?textAppearanceBodyMedium" />
301 </LinearLayout>
302
303 <ImageButton
304 android:id="@+id/edit_nick_button"
305 android:layout_width="wrap_content"
306 android:layout_height="wrap_content"
307 android:layout_alignParentEnd="true"
308 android:layout_centerVertical="true"
309 android:background="?attr/selectableItemBackgroundBorderless"
310 android:padding="@dimen/image_button_padding"
311 android:src="@drawable/ic_edit_24dp" />
312 </RelativeLayout>
313
314 <RelativeLayout
315 android:layout_width="fill_parent"
316 android:layout_height="wrap_content">
317
318 <TextView
319 android:id="@+id/notification_status_text"
320 android:layout_width="wrap_content"
321 android:layout_height="wrap_content"
322 android:layout_alignParentStart="true"
323 android:layout_centerVertical="true"
324 android:layout_toStartOf="@+id/notification_status_button"
325 android:text="@string/notify_on_all_messages"
326 android:textAppearance="?textAppearanceBodyMedium" />
327
328 <ImageButton
329 android:id="@+id/notification_status_button"
330 style="?android:attr/buttonStyleSmall"
331 android:layout_width="wrap_content"
332 android:layout_height="wrap_content"
333 android:layout_alignParentEnd="true"
334 android:layout_centerVertical="true"
335 android:layout_gravity="center_horizontal"
336 android:background="?attr/selectableItemBackgroundBorderless"
337 android:padding="@dimen/image_button_padding"
338 android:src="@drawable/ic_notifications_24dp" />
339 </RelativeLayout>
340
341 <TextView
342 android:id="@+id/details_account"
343 android:layout_width="wrap_content"
344 android:layout_height="wrap_content"
345 android:layout_gravity="end"
346 android:layout_marginTop="32dp"
347 android:text="@string/using_account"
348 android:textAppearance="?textAppearanceLabelMedium" />
349 </LinearLayout>
350 </com.google.android.material.card.MaterialCardView>
351
352 <com.google.android.material.card.MaterialCardView
353 android:id="@+id/media_wrapper"
354 android:layout_width="fill_parent"
355 android:layout_height="wrap_content"
356 android:layout_marginLeft="@dimen/activity_horizontal_margin"
357 android:layout_marginTop="@dimen/activity_vertical_margin"
358 android:layout_marginRight="@dimen/activity_horizontal_margin"
359 android:layout_marginBottom="@dimen/activity_vertical_margin">
360
361 <LinearLayout
362 android:layout_width="match_parent"
363 android:layout_height="wrap_content"
364 android:orientation="vertical"
365 android:padding="@dimen/card_padding_regular">
366
367 <androidx.recyclerview.widget.RecyclerView
368 android:id="@+id/media"
369 android:layout_width="match_parent"
370 android:layout_height="wrap_content"
371 android:layout_margin="-2dp"
372 android:orientation="horizontal" />
373
374 <LinearLayout
375 android:layout_width="wrap_content"
376 android:layout_height="match_parent"
377 android:layout_gravity="end"
378 android:layout_marginTop="16dp"
379 android:orientation="horizontal">
380
381 <Button
382 android:id="@+id/show_media"
383 style="?attr/materialButtonOutlinedStyle"
384 android:layout_width="wrap_content"
385 android:layout_height="wrap_content"
386 android:text="@string/view_media" />
387 </LinearLayout>
388 </LinearLayout>
389 </com.google.android.material.card.MaterialCardView>
390
391 </LinearLayout>
392 </ScrollView>
393 </LinearLayout>
394</layout>