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 <ScrollView
6
7 android:layout_width="fill_parent"
8 android:layout_height="fill_parent"
9 android:background="?attr/color_background_secondary">
10
11 <LinearLayout
12 android:id="@+id/muc_main_layout"
13 android:layout_width="fill_parent"
14 android:layout_height="wrap_content"
15 android:orientation="vertical">
16
17 <android.support.v7.widget.CardView
18 android:layout_width="match_parent"
19 android:layout_height="wrap_content"
20 android:layout_marginBottom="@dimen/activity_vertical_margin"
21 android:layout_marginLeft="@dimen/activity_horizontal_margin"
22 android:layout_marginRight="@dimen/activity_horizontal_margin"
23 android:layout_marginTop="@dimen/activity_vertical_margin">
24
25 <LinearLayout
26 android:layout_width="match_parent"
27 android:layout_height="wrap_content"
28 android:orientation="vertical"
29 android:padding="@dimen/card_padding_regular">
30
31 <TextView
32 android:id="@+id/muc_jabberid"
33 android:layout_width="wrap_content"
34 android:layout_height="wrap_content"
35 android:layout_marginBottom="16dp"
36 android:text="@string/account_settings_example_jabber_id"
37 android:textAppearance="@style/TextAppearance.AppCompat.Title"/>
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="48dp"
47 android:layout_height="48dp"
48 android:layout_alignParentLeft="true"
49 app:riv_corner_radius="2dp"/>
50
51 <LinearLayout
52 android:layout_width="fill_parent"
53 android:layout_height="wrap_content"
54 android:layout_centerVertical="true"
55 android:layout_toRightOf="@+id/your_photo"
56 android:orientation="vertical"
57 android:paddingLeft="@dimen/avatar_item_distance">
58
59 <TextView
60 android:id="@+id/muc_your_nick"
61 android:layout_width="wrap_content"
62 android:layout_height="wrap_content"
63 android:singleLine="true"
64 android:textAppearance="@style/TextAppearance.AppCompat.Subhead"/>
65
66 <TextView
67 android:id="@+id/muc_role"
68 android:layout_width="wrap_content"
69 android:layout_height="wrap_content"
70 android:singleLine="true"
71 android:textAppearance="@style/TextAppearance.Conversations.Body1.Secondary"/>
72 </LinearLayout>
73
74 <ImageButton
75 android:id="@+id/edit_nick_button"
76 android:layout_width="wrap_content"
77 android:layout_height="wrap_content"
78 android:layout_alignParentRight="true"
79 android:layout_centerVertical="true"
80 android:alpha="?attr/icon_alpha"
81 android:background="?attr/selectableItemBackgroundBorderless"
82 android:padding="@dimen/image_button_padding"
83 android:src="?attr/icon_edit_body"/>
84 </RelativeLayout>
85
86 <RelativeLayout
87 android:id="@+id/muc_settings"
88 android:layout_width="fill_parent"
89 android:layout_height="wrap_content">
90
91 <TextView
92 android:id="@+id/muc_conference_type"
93 android:layout_width="wrap_content"
94 android:layout_height="wrap_content"
95 android:layout_alignParentLeft="true"
96 android:layout_centerVertical="true"
97 android:layout_toLeftOf="@+id/change_conference_button"
98 android:text="@string/private_conference"
99 android:textAppearance="@style/TextAppearance.AppCompat.Body1"
100 />
101
102 <ImageButton
103 android:id="@+id/change_conference_button"
104 style="?android:attr/buttonStyleSmall"
105 android:layout_width="wrap_content"
106 android:layout_height="wrap_content"
107 android:layout_alignParentRight="true"
108 android:layout_centerVertical="true"
109 android:layout_gravity="center_horizontal"
110 android:alpha="?attr/icon_alpha"
111 android:background="?attr/selectableItemBackgroundBorderless"
112 android:padding="@dimen/image_button_padding"
113 android:src="?attr/icon_settings"/>
114 </RelativeLayout>
115
116 <RelativeLayout
117 android:layout_width="fill_parent"
118 android:layout_height="wrap_content">
119
120 <TextView
121 android:id="@+id/notification_status_text"
122 android:layout_width="wrap_content"
123 android:layout_height="wrap_content"
124 android:layout_alignParentLeft="true"
125 android:layout_centerVertical="true"
126 android:layout_toLeftOf="@+id/notification_status_button"
127 android:text="@string/notify_on_all_messages"
128 android:textAppearance="@style/TextAppearance.AppCompat.Body1"
129 />
130
131 <ImageButton
132 android:id="@+id/notification_status_button"
133 style="?android:attr/buttonStyleSmall"
134 android:layout_width="wrap_content"
135 android:layout_height="wrap_content"
136 android:layout_alignParentRight="true"
137 android:layout_centerVertical="true"
138 android:layout_gravity="center_horizontal"
139 android:alpha="?attr/icon_alpha"
140 android:background="?attr/selectableItemBackgroundBorderless"
141 android:padding="@dimen/image_button_padding"
142 android:src="?attr/icon_notifications"/>
143 </RelativeLayout>
144
145 <TableLayout
146 android:id="@+id/muc_info_more"
147 android:layout_width="match_parent"
148 android:layout_height="wrap_content"
149 android:shrinkColumns="0"
150 android:stretchColumns="1"
151 android:visibility="gone">
152
153 <TableRow
154 android:layout_width="fill_parent"
155 android:layout_height="match_parent">
156
157 <TextView
158 android:layout_width="wrap_content"
159 android:layout_height="wrap_content"
160 android:ellipsize="end"
161 android:singleLine="true"
162 android:text="@string/server_info_mam"
163 android:textAppearance="@style/TextAppearance.AppCompat.Body1"/>
164
165 <TextView
166 android:id="@+id/muc_info_mam"
167 android:layout_width="wrap_content"
168 android:layout_height="wrap_content"
169 android:layout_gravity="right"
170 android:paddingLeft="4dp"
171 android:textAppearance="@style/TextAppearance.AppCompat.Body1"/>
172 </TableRow>
173
174 </TableLayout>
175
176 <TextView
177 android:id="@+id/details_account"
178 android:layout_width="wrap_content"
179 android:layout_height="wrap_content"
180 android:layout_gravity="right"
181 android:layout_marginTop="32dp"
182 android:text="@string/using_account"
183 android:textAppearance="@style/TextAppearance.AppCompat.Caption"/>
184 </LinearLayout>
185 </android.support.v7.widget.CardView>
186
187 <android.support.v7.widget.CardView
188 android:id="@+id/muc_more_details"
189 android:layout_width="fill_parent"
190 android:layout_height="wrap_content"
191 android:layout_marginBottom="@dimen/activity_vertical_margin"
192 android:layout_marginLeft="@dimen/activity_horizontal_margin"
193 android:layout_marginRight="@dimen/activity_horizontal_margin"
194 android:layout_marginTop="@dimen/activity_vertical_margin">
195
196 <LinearLayout
197 android:layout_width="match_parent"
198 android:layout_height="wrap_content"
199 android:orientation="vertical">
200
201 <LinearLayout
202 android:id="@+id/muc_members"
203 android:layout_width="match_parent"
204 android:layout_height="wrap_content"
205 android:orientation="vertical"
206 android:padding="@dimen/card_padding_list">
207 </LinearLayout>
208
209 <LinearLayout
210 android:layout_width="wrap_content"
211 android:layout_height="match_parent"
212 android:layout_gravity="center_horizontal"
213 android:layout_marginTop="8dp"
214 android:orientation="horizontal">
215
216
217 <Button
218 android:id="@+id/invite"
219 style="?android:attr/borderlessButtonStyle"
220 android:layout_width="wrap_content"
221 android:layout_height="wrap_content"
222 android:minWidth="0dp"
223 android:paddingLeft="16dp"
224 android:paddingRight="16dp"
225 android:text="@string/invite_contact"
226 android:textColor="?attr/colorAccent"/>
227
228 </LinearLayout>
229 </LinearLayout>
230 </android.support.v7.widget.CardView>
231
232 </LinearLayout>
233 </ScrollView>
234</layout>