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 <LinearLayout
6 android:layout_width="match_parent"
7 android:layout_height="match_parent"
8 android:background="?attr/color_background_secondary"
9 android:orientation="vertical">
10
11 <include
12 android:id="@+id/toolbar"
13 layout="@layout/toolbar"/>
14
15 <ScrollView
16 android:layout_width="fill_parent"
17 android:layout_height="fill_parent">
18
19 <LinearLayout
20 android:id="@+id/muc_main_layout"
21 android:layout_width="fill_parent"
22 android:layout_height="wrap_content"
23 android:orientation="vertical">
24
25 <android.support.v7.widget.CardView
26 android:layout_width="match_parent"
27 android:layout_height="wrap_content"
28 android:layout_marginBottom="@dimen/activity_vertical_margin"
29 android:layout_marginLeft="@dimen/activity_horizontal_margin"
30 android:layout_marginRight="@dimen/activity_horizontal_margin"
31 android:layout_marginTop="@dimen/activity_vertical_margin">
32
33 <LinearLayout
34 android:layout_width="match_parent"
35 android:layout_height="wrap_content"
36 android:orientation="vertical"
37 android:padding="@dimen/card_padding_regular">
38
39 <RelativeLayout
40 android:layout_width="fill_parent"
41 android:layout_height="wrap_content"
42 android:layout_marginBottom="32dp">
43
44 <com.makeramen.roundedimageview.RoundedImageView
45 android:id="@+id/your_photo"
46 android:layout_width="@dimen/avatar_on_details_screen_size"
47 android:layout_height="@dimen/avatar_on_details_screen_size"
48 android:layout_alignParentStart="true"
49 app:riv_corner_radius="2dp"
50 android:layout_marginEnd="@dimen/avatar_item_distance"
51 android:layout_alignParentLeft="true"
52 android:layout_marginRight="@dimen/avatar_item_distance" />
53
54 <LinearLayout
55 android:layout_width="fill_parent"
56 android:layout_height="wrap_content"
57 android:layout_alignParentTop="true"
58 android:layout_toEndOf="@+id/your_photo"
59 android:orientation="vertical"
60 android:layout_toRightOf="@+id/your_photo">
61
62 <RelativeLayout
63 android:layout_width="match_parent"
64 android:layout_height="wrap_content">
65
66 <LinearLayout
67 android:id="@+id/muc_display"
68 android:layout_width="wrap_content"
69 android:layout_height="wrap_content"
70 android:layout_alignParentStart="true"
71 android:layout_toStartOf="@+id/edit_muc_name_button"
72 android:orientation="vertical"
73 android:layout_alignParentLeft="true"
74 android:layout_toLeftOf="@+id/edit_muc_name_button">
75
76 <TextView
77 android:id="@+id/muc_title"
78 android:layout_width="wrap_content"
79 android:layout_height="wrap_content"
80 android:textAppearance="@style/TextAppearance.Conversations.Title"/>
81
82 <TextView
83 android:id="@+id/muc_subject"
84 android:layout_width="wrap_content"
85 android:layout_height="wrap_content"
86 android:autoLink="web"
87 android:textAppearance="@style/TextAppearance.Conversations.Subhead"/>
88 </LinearLayout>
89
90
91 <LinearLayout
92 android:id="@+id/muc_editor"
93 android:layout_width="wrap_content"
94 android:layout_height="wrap_content"
95 android:layout_alignParentStart="true"
96 android:layout_toStartOf="@+id/edit_muc_name_button"
97 android:orientation="vertical"
98 android:visibility="gone"
99 android:layout_alignParentLeft="true"
100 android:layout_toLeftOf="@+id/edit_muc_name_button">
101
102 <android.support.design.widget.TextInputLayout
103 android:layout_width="match_parent"
104 android:layout_height="wrap_content"
105 app:errorTextAppearance="@style/TextAppearance.Conversations.Design.Error"
106 app:hintTextAppearance="@style/TextAppearance.Conversations.Design.Hint">
107
108 <eu.siacs.conversations.ui.widget.EmojiWrapperEditText
109 android:id="@+id/muc_edit_title"
110 android:layout_width="match_parent"
111 android:layout_height="wrap_content"
112 android:hint="@string/group_chat_name"
113 android:textAppearance="@style/Widget.Conversations.EditText"/>
114 </android.support.design.widget.TextInputLayout>
115
116 <android.support.design.widget.TextInputLayout
117 android:layout_width="match_parent"
118 android:layout_height="wrap_content"
119 app:errorTextAppearance="@style/TextAppearance.Conversations.Design.Error"
120 app:hintTextAppearance="@style/TextAppearance.Conversations.Design.Hint">
121
122 <eu.siacs.conversations.ui.widget.EmojiWrapperEditText
123 android:id="@+id/muc_edit_subject"
124 android:layout_width="match_parent"
125 android:layout_height="wrap_content"
126 android:hint="@string/topic"
127 android:textAppearance="@style/Widget.Conversations.EditText"/>
128 </android.support.design.widget.TextInputLayout>
129
130 </LinearLayout>
131
132 <ImageButton
133 android:id="@+id/edit_muc_name_button"
134 android:layout_width="wrap_content"
135 android:layout_height="wrap_content"
136 android:layout_alignParentEnd="true"
137 android:layout_alignParentTop="true"
138 android:alpha="?attr/icon_alpha"
139 android:background="?attr/selectableItemBackgroundBorderless"
140 android:padding="@dimen/image_button_padding"
141 android:src="?attr/icon_edit_body"
142 android:layout_alignParentRight="true" />
143 </RelativeLayout>
144 </LinearLayout>
145 </RelativeLayout>
146
147 <RelativeLayout
148 android:id="@+id/muc_settings"
149 android:layout_width="fill_parent"
150 android:layout_height="wrap_content">
151
152 <TextView
153 android:id="@+id/muc_conference_type"
154 android:layout_width="wrap_content"
155 android:layout_height="wrap_content"
156 android:layout_alignParentStart="true"
157 android:layout_centerVertical="true"
158 android:layout_toStartOf="@+id/change_conference_button"
159 android:textAppearance="@style/TextAppearance.Conversations.Body1"
160 android:layout_alignParentLeft="true"
161 android:layout_toLeftOf="@+id/change_conference_button" />
162
163 <ImageButton
164 android:id="@+id/change_conference_button"
165 style="?android:attr/buttonStyleSmall"
166 android:layout_width="wrap_content"
167 android:layout_height="wrap_content"
168 android:layout_alignParentEnd="true"
169 android:layout_centerVertical="true"
170 android:layout_gravity="center_horizontal"
171 android:alpha="?attr/icon_alpha"
172 android:background="?attr/selectableItemBackgroundBorderless"
173 android:padding="@dimen/image_button_padding"
174 android:src="?attr/icon_settings"
175 android:layout_alignParentRight="true" />
176 </RelativeLayout>
177
178 <TableLayout
179 android:id="@+id/muc_info_more"
180 android:layout_width="match_parent"
181 android:layout_height="wrap_content"
182 android:shrinkColumns="0"
183 android:stretchColumns="1"
184 android:visibility="gone">
185
186 <TableRow
187 android:layout_width="fill_parent"
188 android:layout_height="match_parent">
189
190 <TextView
191 android:layout_width="wrap_content"
192 android:layout_height="wrap_content"
193 android:ellipsize="end"
194 android:singleLine="true"
195 android:text="@string/server_info_mam"
196 android:textAppearance="@style/TextAppearance.Conversations.Body1"/>
197
198 <TextView
199 android:id="@+id/muc_info_mam"
200 android:layout_width="wrap_content"
201 android:layout_height="wrap_content"
202 android:layout_gravity="end"
203 android:paddingStart="4dp"
204 android:textAppearance="@style/TextAppearance.Conversations.Body1"
205 android:paddingLeft="4dp" />
206 </TableRow>
207
208 </TableLayout>
209
210 <TextView
211 android:id="@+id/jid"
212 android:layout_width="wrap_content"
213 android:layout_height="wrap_content"
214 android:layout_gravity="end"
215 android:layout_marginTop="32dp"
216 android:textAppearance="@style/TextAppearance.Conversations.Caption"/>
217 </LinearLayout>
218 </android.support.v7.widget.CardView>
219
220 <android.support.v7.widget.CardView
221 android:id="@+id/users_wrapper"
222 android:layout_width="fill_parent"
223 android:layout_height="wrap_content"
224 android:layout_marginBottom="@dimen/activity_vertical_margin"
225 android:layout_marginLeft="@dimen/activity_horizontal_margin"
226 android:layout_marginRight="@dimen/activity_horizontal_margin"
227 android:layout_marginTop="@dimen/activity_vertical_margin">
228
229 <LinearLayout
230 android:layout_width="match_parent"
231 android:layout_height="wrap_content"
232 android:orientation="vertical">
233
234 <TextView
235 android:id="@+id/no_users_hints"
236 android:layout_width="wrap_content"
237 android:layout_height="wrap_content"
238 android:paddingTop="@dimen/card_padding_regular"
239 android:paddingEnd="@dimen/card_padding_regular"
240 android:paddingStart="@dimen/card_padding_regular"
241 android:text="@string/no_users_hint_channel"
242 android:textAppearance="@style/TextAppearance.Conversations.Body2"/>
243
244 <android.support.v7.widget.RecyclerView
245 android:id="@+id/users"
246 android:layout_width="match_parent"
247 android:layout_height="wrap_content"
248 android:orientation="horizontal"
249 android:paddingEnd="@dimen/card_padding_regular"
250 android:paddingStart="@dimen/card_padding_regular"
251 android:paddingTop="@dimen/card_padding_regular"
252 android:paddingBottom="@dimen/card_padding_list"
253 android:layout_marginStart="-2dp"
254 android:layout_marginEnd="-2dp"/>
255
256 <LinearLayout
257 android:layout_width="wrap_content"
258 android:layout_height="match_parent"
259 android:orientation="horizontal"
260 android:layout_gravity="end">
261
262 <Button
263 android:id="@+id/invite"
264 style="@style/Widget.Conversations.Button.Borderless"
265 android:layout_width="wrap_content"
266 android:layout_height="wrap_content"
267 android:minWidth="0dp"
268 android:paddingLeft="16dp"
269 android:paddingRight="16dp"
270 android:text="@string/invite"
271 android:textColor="?attr/colorAccent" />
272
273 <Button
274 android:id="@+id/show_users"
275 style="@style/Widget.Conversations.Button.Borderless"
276 android:layout_width="wrap_content"
277 android:layout_height="wrap_content"
278 android:minWidth="0dp"
279 android:paddingLeft="16dp"
280 android:paddingRight="16dp"
281 android:text="@string/view_users"
282 android:textColor="?attr/colorAccent" />
283 </LinearLayout>
284 </LinearLayout>
285 </android.support.v7.widget.CardView>
286
287 <android.support.v7.widget.CardView
288 android:layout_width="match_parent"
289 android:layout_height="wrap_content"
290 android:layout_marginBottom="@dimen/activity_vertical_margin"
291 android:layout_marginLeft="@dimen/activity_horizontal_margin"
292 android:layout_marginRight="@dimen/activity_horizontal_margin"
293 android:layout_marginTop="@dimen/activity_vertical_margin">
294
295 <LinearLayout
296 android:layout_width="match_parent"
297 android:layout_height="wrap_content"
298 android:orientation="vertical"
299 android:padding="@dimen/card_padding_regular">
300
301 <RelativeLayout
302 android:layout_width="match_parent"
303 android:layout_height="wrap_content">
304
305 <LinearLayout
306 android:layout_width="fill_parent"
307 android:layout_height="wrap_content"
308 android:layout_centerVertical="true"
309 android:orientation="vertical">
310
311 <TextView
312 android:id="@+id/muc_your_nick"
313 android:layout_width="wrap_content"
314 android:layout_height="wrap_content"
315 android:singleLine="true"
316 android:textAppearance="@style/TextAppearance.Conversations.Subhead"/>
317
318 <TextView
319 android:id="@+id/muc_role"
320 android:layout_width="wrap_content"
321 android:layout_height="wrap_content"
322 android:singleLine="true"
323 android:textAppearance="@style/TextAppearance.Conversations.Body1.Secondary"/>
324 </LinearLayout>
325
326 <ImageButton
327 android:id="@+id/edit_nick_button"
328 android:layout_width="wrap_content"
329 android:layout_height="wrap_content"
330 android:layout_alignParentEnd="true"
331 android:layout_centerVertical="true"
332 android:alpha="?attr/icon_alpha"
333 android:background="?attr/selectableItemBackgroundBorderless"
334 android:padding="@dimen/image_button_padding"
335 android:src="?attr/icon_edit_body"
336 android:layout_alignParentRight="true" />
337 </RelativeLayout>
338
339 <RelativeLayout
340 android:layout_width="fill_parent"
341 android:layout_height="wrap_content">
342
343 <TextView
344 android:id="@+id/notification_status_text"
345 android:layout_width="wrap_content"
346 android:layout_height="wrap_content"
347 android:layout_alignParentStart="true"
348 android:layout_centerVertical="true"
349 android:layout_toStartOf="@+id/notification_status_button"
350 android:text="@string/notify_on_all_messages"
351 android:textAppearance="@style/TextAppearance.Conversations.Body1"
352 android:layout_alignParentLeft="true"
353 android:layout_toLeftOf="@+id/notification_status_button" />
354
355 <ImageButton
356 android:id="@+id/notification_status_button"
357 style="?android:attr/buttonStyleSmall"
358 android:layout_width="wrap_content"
359 android:layout_height="wrap_content"
360 android:layout_alignParentEnd="true"
361 android:layout_centerVertical="true"
362 android:layout_gravity="center_horizontal"
363 android:alpha="?attr/icon_alpha"
364 android:background="?attr/selectableItemBackgroundBorderless"
365 android:padding="@dimen/image_button_padding"
366 android:src="?attr/icon_notifications"
367 android:layout_alignParentRight="true" />
368 </RelativeLayout>
369
370 <TextView
371 android:id="@+id/details_account"
372 android:layout_width="wrap_content"
373 android:layout_height="wrap_content"
374 android:layout_gravity="end"
375 android:layout_marginTop="32dp"
376 android:text="@string/using_account"
377 android:textAppearance="@style/TextAppearance.Conversations.Caption"/>
378 </LinearLayout>
379 </android.support.v7.widget.CardView>
380 <android.support.v7.widget.CardView
381 android:id="@+id/media_wrapper"
382 android:layout_width="fill_parent"
383 android:layout_height="wrap_content"
384 android:layout_marginBottom="@dimen/activity_vertical_margin"
385 android:layout_marginLeft="@dimen/activity_horizontal_margin"
386 android:layout_marginRight="@dimen/activity_horizontal_margin"
387 android:layout_marginTop="@dimen/activity_vertical_margin">
388
389 <LinearLayout
390 android:layout_width="match_parent"
391 android:layout_height="wrap_content"
392 android:orientation="vertical">
393
394 <android.support.v7.widget.RecyclerView
395 android:id="@+id/media"
396 android:layout_width="match_parent"
397 android:layout_height="wrap_content"
398 android:orientation="horizontal"
399 android:paddingEnd="@dimen/card_padding_regular"
400 android:paddingStart="@dimen/card_padding_regular"
401 android:paddingTop="@dimen/card_padding_regular"
402 android:paddingBottom="@dimen/card_padding_list"
403 android:layout_marginStart="-2dp"
404 android:layout_marginEnd="-2dp"/>
405
406 <LinearLayout
407 android:layout_width="wrap_content"
408 android:layout_height="match_parent"
409 android:orientation="horizontal"
410 android:layout_gravity="end">
411
412 <Button
413 android:id="@+id/show_media"
414 style="@style/Widget.Conversations.Button.Borderless"
415 android:layout_width="wrap_content"
416 android:layout_height="wrap_content"
417 android:minWidth="0dp"
418 android:paddingLeft="16dp"
419 android:paddingRight="16dp"
420 android:text="@string/view_media"
421 android:textColor="?attr/colorAccent" />
422 </LinearLayout>
423 </LinearLayout>
424 </android.support.v7.widget.CardView>
425
426 </LinearLayout>
427 </ScrollView>
428 </LinearLayout>
429</layout>