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:fitsSystemWindows="true"
10 android:orientation="vertical">
11
12 <com.google.android.material.appbar.AppBarLayout
13 android:layout_width="match_parent"
14 android:layout_height="wrap_content">
15
16 <com.google.android.material.appbar.MaterialToolbar
17 android:id="@+id/toolbar"
18 android:layout_width="match_parent"
19 android:layout_height="wrap_content"
20 android:minHeight="?attr/actionBarSize" />
21
22 </com.google.android.material.appbar.AppBarLayout>
23
24 <ScrollView
25 android:layout_width="fill_parent"
26 android:layout_height="fill_parent">
27
28 <LinearLayout
29 android:id="@+id/details_main_layout"
30 android:layout_width="fill_parent"
31 android:layout_height="wrap_content"
32 android:orientation="vertical">
33
34 <com.google.android.material.card.MaterialCardView
35 android:layout_width="match_parent"
36 android:layout_height="wrap_content"
37 android:layout_marginLeft="@dimen/activity_horizontal_margin"
38 android:layout_marginTop="@dimen/activity_vertical_margin"
39 android:layout_marginRight="@dimen/activity_horizontal_margin"
40 android:layout_marginBottom="@dimen/activity_vertical_margin">
41
42 <RelativeLayout
43 android:layout_width="match_parent"
44 android:layout_height="wrap_content"
45 android:padding="@dimen/card_padding_regular">
46
47 <com.makeramen.roundedimageview.RoundedImageView
48 android:id="@+id/details_avatar"
49 android:layout_width="@dimen/publish_avatar_size"
50 android:layout_height="@dimen/publish_avatar_size"
51 android:layout_alignParentTop="true"
52 android:layout_centerHorizontal="true"
53 android:scaleType="centerCrop"
54 app:riv_corner_radius="8dp" />
55
56 <TextView
57 android:id="@+id/details_contact_xmpp_address"
58 android:layout_width="wrap_content"
59 android:layout_height="wrap_content"
60 android:layout_below="@+id/details_avatar"
61 android:layout_centerHorizontal="true"
62 android:layout_marginTop="16sp"
63 android:gravity="center_horizontal"
64 android:minWidth="288dp"
65 android:text="@string/account_settings_example_jabber_id"
66 android:textAppearance="?textAppearanceTitleLarge" />
67
68
69
70 <LinearLayout
71 android:id="@+id/button_box"
72 android:layout_width="wrap_content"
73 android:layout_height="wrap_content"
74 android:layout_below="@+id/details_contact_xmpp_address"
75 android:layout_centerHorizontal="true"
76 android:layout_marginTop="16dp"
77 android:orientation="horizontal">
78
79 <Button
80 android:id="@+id/add_contact_button"
81 android:layout_width="wrap_content"
82 android:layout_height="wrap_content"
83 android:layout_marginHorizontal="8dp"
84 android:text="@string/add_contact" />
85
86 <Button
87 android:id="@+id/add_address_book"
88 style="@style/Widget.Material3.Button.TonalButton"
89 android:layout_width="wrap_content"
90 android:layout_height="wrap_content"
91 android:layout_marginHorizontal="8dp"
92 android:text="@string/save_to_contact"
93 app:icon="@drawable/ic_contacts_24dp" />
94 </LinearLayout>
95
96
97 <androidx.constraintlayout.widget.ConstraintLayout
98 android:id="@+id/tags"
99 android:layout_width="wrap_content"
100 android:layout_height="wrap_content"
101 android:layout_below="@+id/button_box"
102 android:layout_centerHorizontal="true"
103 android:layout_marginTop="16sp"
104 android:visibility="gone">
105
106 <androidx.constraintlayout.helper.widget.Flow
107 android:id="@+id/flow_widget"
108 android:layout_width="0dp"
109 android:layout_height="wrap_content"
110 app:flow_horizontalBias="0"
111 app:flow_horizontalGap="8sp"
112 app:flow_horizontalStyle="packed"
113 app:flow_verticalGap="4sp"
114 app:flow_wrapMode="chain"
115 app:layout_constraintEnd_toEndOf="parent"
116 app:layout_constraintStart_toStartOf="parent"
117 app:layout_constraintTop_toTopOf="parent" />
118 </androidx.constraintlayout.widget.ConstraintLayout>
119
120
121 <TextView
122 android:id="@+id/details_last_seen"
123 android:layout_width="wrap_content"
124 android:layout_height="wrap_content"
125 android:layout_below="@+id/tags"
126 android:layout_centerHorizontal="true"
127 android:layout_marginTop="8sp"
128 android:textAppearance="?textAppearanceTitleSmall"
129 tools:text="@string/just_now" />
130
131 <LinearLayout
132 android:id="@+id/status_message_subscription_box"
133 android:layout_width="wrap_content"
134 android:layout_height="wrap_content"
135 android:layout_below="@+id/details_last_seen"
136 android:layout_alignStart="@+id/details_contact_xmpp_address"
137 android:layout_marginTop="8sp"
138 android:orientation="vertical">
139
140 <TextView
141 android:id="@+id/status_message"
142 android:layout_width="wrap_content"
143 android:layout_height="wrap_content"
144 android:layout_marginBottom="8sp"
145 android:textAppearance="?textAppearanceBodyMedium"
146 tools:text="Hey there! I’m using Conversations" />
147
148 <CheckBox
149 android:id="@+id/details_send_presence"
150 android:layout_width="wrap_content"
151 android:layout_height="wrap_content"
152 android:text="@string/send_presence_updates" />
153
154 <CheckBox
155 android:id="@+id/details_receive_presence"
156 android:layout_width="wrap_content"
157 android:layout_height="wrap_content"
158 android:text="@string/receive_presence_updates" />
159 </LinearLayout>
160
161 <TextView
162 android:id="@+id/details_account"
163 android:layout_width="wrap_content"
164 android:layout_height="wrap_content"
165 android:layout_below="@+id/status_message_subscription_box"
166 android:layout_alignParentEnd="true"
167 android:layout_alignParentBottom="true"
168 android:layout_marginTop="16sp"
169 android:text="@string/using_account"
170 android:textAppearance="?textAppearanceLabelMedium" />
171 </RelativeLayout>
172 </com.google.android.material.card.MaterialCardView>
173
174 <com.google.android.material.card.MaterialCardView
175 android:id="@+id/media_wrapper"
176 android:layout_width="fill_parent"
177 android:layout_height="wrap_content"
178 android:layout_marginLeft="@dimen/activity_horizontal_margin"
179 android:layout_marginTop="@dimen/activity_vertical_margin"
180 android:layout_marginRight="@dimen/activity_horizontal_margin"
181 android:layout_marginBottom="@dimen/activity_vertical_margin">
182
183 <LinearLayout
184 android:layout_width="match_parent"
185 android:layout_height="wrap_content"
186 android:orientation="vertical"
187 android:padding="@dimen/card_padding_regular">
188
189 <androidx.recyclerview.widget.RecyclerView
190 android:id="@+id/media"
191 android:layout_width="match_parent"
192 android:layout_height="wrap_content"
193 android:layout_margin="-2dp"
194 android:orientation="horizontal" />
195
196 <LinearLayout
197 android:layout_width="wrap_content"
198 android:layout_height="match_parent"
199 android:layout_gravity="end"
200 android:layout_marginTop="16dp"
201 android:orientation="horizontal">
202
203 <Button
204 android:id="@+id/show_media"
205 style="?attr/materialButtonOutlinedStyle"
206 android:layout_width="wrap_content"
207 android:layout_height="wrap_content"
208 android:text="@string/view_media" />
209 </LinearLayout>
210 </LinearLayout>
211 </com.google.android.material.card.MaterialCardView>
212
213 <com.google.android.material.card.MaterialCardView
214 android:id="@+id/keys_wrapper"
215 android:layout_width="fill_parent"
216 android:layout_height="wrap_content"
217 android:layout_marginLeft="@dimen/activity_horizontal_margin"
218 android:layout_marginTop="@dimen/activity_vertical_margin"
219 android:layout_marginRight="@dimen/activity_horizontal_margin"
220 android:layout_marginBottom="@dimen/activity_vertical_margin">
221
222 <LinearLayout
223 android:layout_width="match_parent"
224 android:layout_height="wrap_content"
225 android:orientation="vertical">
226
227 <LinearLayout
228 android:id="@+id/details_contact_keys"
229 android:layout_width="match_parent"
230 android:layout_height="wrap_content"
231 android:orientation="vertical"
232 android:padding="@dimen/card_padding_list" />
233
234 <LinearLayout
235 android:id="@+id/unverified_warning"
236 android:layout_width="match_parent"
237 android:layout_height="wrap_content"
238 android:paddingHorizontal="@dimen/card_padding_list">
239
240 <TextView
241 android:layout_width="wrap_content"
242 android:layout_height="wrap_content"
243 android:layout_marginHorizontal="@dimen/list_padding"
244 android:text="@string/contact_uses_unverified_keys"
245 android:textAppearance="?textAppearanceBodyMedium"
246 android:textColor="?colorOnSurfaceVariant" />
247 </LinearLayout>
248
249 <LinearLayout
250 android:layout_width="wrap_content"
251 android:layout_height="match_parent"
252 android:layout_marginTop="8dp"
253 android:orientation="horizontal"
254 android:padding="@dimen/card_padding_list">
255
256
257 <Button
258 android:id="@+id/scan_button"
259 style="@style/Widget.Material3.Button.TextButton"
260 android:layout_width="wrap_content"
261 android:layout_height="wrap_content"
262 android:text="@string/scan_qr_code" />
263
264 <Button
265 android:id="@+id/show_inactive_devices"
266 style="@style/Widget.Material3.Button.TextButton"
267 android:layout_width="wrap_content"
268 android:layout_height="wrap_content"
269 android:text="@string/show_inactive_devices" />
270 </LinearLayout>
271 </LinearLayout>
272 </com.google.android.material.card.MaterialCardView>
273 </LinearLayout>
274 </ScrollView>
275 </LinearLayout>
276</layout>