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