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