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/details_main_layout"
22 android:layout_width="fill_parent"
23 android:layout_height="wrap_content"
24 android:orientation="vertical">
25
26 <androidx.cardview.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 <RelativeLayout
35 android:layout_width="match_parent"
36 android:layout_height="wrap_content"
37 android:padding="@dimen/card_padding_regular">
38
39 <QuickContactBadge
40 android:id="@+id/details_contact_badge"
41 android:layout_width="@dimen/avatar_on_details_screen_size"
42 android:layout_height="@dimen/avatar_on_details_screen_size"
43 android:layout_alignParentTop="true"
44 android:scaleType="centerCrop" />
45
46 <LinearLayout
47 android:id="@+id/details_jidbox"
48 android:layout_width="wrap_content"
49 android:layout_height="wrap_content"
50 android:layout_marginLeft="16dp"
51 android:layout_toRightOf="@+id/details_contact_badge"
52 android:orientation="vertical">
53
54 <TextView
55 android:id="@+id/details_contactjid"
56 android:layout_width="wrap_content"
57 android:layout_height="wrap_content"
58 android:text="@string/account_settings_example_jabber_id"
59 android:textAppearance="@style/TextAppearance.Conversations.Title" />
60
61 <com.wefika.flowlayout.FlowLayout
62 android:id="@+id/tags"
63 android:layout_width="wrap_content"
64 android:layout_height="wrap_content"
65 android:layout_marginBottom="4dp"
66 android:layout_marginLeft="-2dp"
67 android:layout_marginTop="4dp"
68 android:orientation="horizontal"></com.wefika.flowlayout.FlowLayout>
69
70 <com.cheogram.android.TagEditorView
71 android:id="@+id/edit_tags"
72 android:visibility="gone"
73 android:hint="Tags"
74 android:layout_width="match_parent"
75 android:layout_height="wrap_content"
76 android:layout_marginBottom="4dp"
77 android:layout_marginLeft="-4dp"
78 android:layout_marginTop="-4dp" />
79
80 <TextView
81 android:id="@+id/details_lastseen"
82 android:layout_width="wrap_content"
83 android:layout_height="wrap_content"
84 android:layout_marginTop="4dp"
85 android:textAppearance="@style/TextAppearance.Conversations.Subhead" />
86
87 <TextView
88 android:id="@+id/status_message"
89 android:layout_width="wrap_content"
90 android:layout_height="wrap_content"
91 android:layout_marginTop="8dp"
92 android:textAppearance="@style/TextAppearance.Conversations.Body1" />
93
94 <Button
95 android:id="@+id/add_contact_button"
96 android:layout_width="wrap_content"
97 android:layout_height="wrap_content"
98 android:layout_marginTop="8dp"
99 android:text="@string/add_contact" />
100
101 <CheckBox
102 android:id="@+id/details_send_presence"
103 style="@style/Widget.Conversations.CheckBox"
104 android:layout_width="wrap_content"
105 android:layout_height="wrap_content"
106 android:layout_marginTop="8dp"
107 android:text="@string/send_presence_updates"
108 android:textAppearance="@style/TextAppearance.Conversations.Body1" />
109
110 <CheckBox
111 android:id="@+id/details_receive_presence"
112 style="@style/Widget.Conversations.CheckBox"
113 android:layout_width="wrap_content"
114 android:layout_height="wrap_content"
115 android:text="@string/receive_presence_updates"
116 android:textAppearance="@style/TextAppearance.Conversations.Body1" />
117 </LinearLayout>
118
119 <TextView
120 android:id="@+id/details_account"
121 android:layout_width="wrap_content"
122 android:layout_height="wrap_content"
123 android:layout_alignParentRight="true"
124 android:layout_below="@+id/details_jidbox"
125 android:layout_marginTop="32dp"
126 android:text="@string/using_account"
127 android:textAppearance="@style/TextAppearance.Conversations.Caption" />
128 </RelativeLayout>
129 </androidx.cardview.widget.CardView>
130
131 <androidx.cardview.widget.CardView
132 android:id="@+id/profile"
133 android:layout_width="match_parent"
134 android:layout_height="wrap_content"
135 android:layout_marginBottom="@dimen/activity_vertical_margin"
136 android:layout_marginLeft="@dimen/activity_horizontal_margin"
137 android:layout_marginRight="@dimen/activity_horizontal_margin"
138 android:layout_marginTop="@dimen/activity_vertical_margin">
139
140 <ListView
141 android:id="@+id/profile_items"
142 android:layout_width="fill_parent"
143 android:layout_height="wrap_content"
144 android:divider="@android:color/transparent"
145 android:dividerHeight="0dp"></ListView>
146
147 </androidx.cardview.widget.CardView>
148
149 <androidx.cardview.widget.CardView
150 android:id="@+id/media_wrapper"
151 android:layout_width="fill_parent"
152 android:layout_height="wrap_content"
153 android:layout_marginBottom="@dimen/activity_vertical_margin"
154 android:layout_marginLeft="@dimen/activity_horizontal_margin"
155 android:layout_marginRight="@dimen/activity_horizontal_margin"
156 android:layout_marginTop="@dimen/activity_vertical_margin">
157
158 <LinearLayout
159 android:layout_width="match_parent"
160 android:layout_height="wrap_content"
161 android:orientation="vertical">
162
163 <androidx.recyclerview.widget.RecyclerView
164 android:id="@+id/media"
165 android:layout_width="match_parent"
166 android:layout_height="wrap_content"
167 android:orientation="horizontal"
168 android:paddingEnd="@dimen/card_padding_regular"
169 android:paddingStart="@dimen/card_padding_regular"
170 android:paddingTop="@dimen/card_padding_regular"
171 android:paddingBottom="@dimen/card_padding_list"
172 android:layout_marginStart="-2dp"
173 android:layout_marginEnd="-2dp"/>
174
175 <LinearLayout
176 android:layout_width="wrap_content"
177 android:layout_height="match_parent"
178 android:orientation="horizontal"
179 android:layout_gravity="end">
180
181 <Button
182 android:id="@+id/show_media"
183 style="@style/Widget.Conversations.Button.Borderless"
184 android:layout_width="wrap_content"
185 android:layout_height="wrap_content"
186 android:minWidth="0dp"
187 android:paddingLeft="16dp"
188 android:paddingRight="16dp"
189 android:text="@string/view_media"
190 android:textColor="?attr/colorAccent" />
191 </LinearLayout>
192 </LinearLayout>
193 </androidx.cardview.widget.CardView>
194
195 <androidx.cardview.widget.CardView
196 android:id="@+id/keys_wrapper"
197 android:layout_width="fill_parent"
198 android:layout_height="wrap_content"
199 android:layout_marginBottom="@dimen/activity_vertical_margin"
200 android:layout_marginLeft="@dimen/activity_horizontal_margin"
201 android:layout_marginRight="@dimen/activity_horizontal_margin"
202 android:layout_marginTop="@dimen/activity_vertical_margin">
203
204 <LinearLayout
205 android:layout_width="match_parent"
206 android:layout_height="wrap_content"
207 android:orientation="vertical">
208
209 <LinearLayout
210 android:id="@+id/details_contact_keys"
211 android:layout_width="match_parent"
212 android:layout_height="wrap_content"
213 android:orientation="vertical"
214 android:padding="@dimen/card_padding_list"/>
215
216 <LinearLayout
217 android:layout_width="wrap_content"
218 android:layout_height="match_parent"
219 android:layout_marginTop="8dp"
220 android:orientation="horizontal">
221
222
223 <Button
224 android:id="@+id/scan_button"
225 style="@style/Widget.Conversations.Button.Borderless"
226 android:layout_width="wrap_content"
227 android:layout_height="wrap_content"
228 android:minWidth="0dp"
229 android:paddingLeft="16dp"
230 android:paddingRight="16dp"
231 android:text="@string/scan_qr_code"
232 android:textColor="?attr/colorAccent" />
233
234 <Button
235 android:id="@+id/show_inactive_devices"
236 style="@style/Widget.Conversations.Button.Borderless"
237 android:layout_width="wrap_content"
238 android:layout_height="wrap_content"
239 android:minWidth="0dp"
240 android:paddingLeft="16dp"
241 android:paddingRight="16dp"
242 android:text="@string/show_inactive_devices"
243 android:textColor="?attr/colorAccent" />
244 </LinearLayout>
245 </LinearLayout>
246 </androidx.cardview.widget.CardView>
247 </LinearLayout>
248 </ScrollView>
249 </LinearLayout>
250</layout>