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