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/media_wrapper"
133 android:layout_width="fill_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 <LinearLayout
141 android:layout_width="match_parent"
142 android:layout_height="wrap_content"
143 android:orientation="vertical">
144
145 <androidx.recyclerview.widget.RecyclerView
146 android:id="@+id/media"
147 android:layout_width="match_parent"
148 android:layout_height="wrap_content"
149 android:orientation="horizontal"
150 android:paddingEnd="@dimen/card_padding_regular"
151 android:paddingStart="@dimen/card_padding_regular"
152 android:paddingTop="@dimen/card_padding_regular"
153 android:paddingBottom="@dimen/card_padding_list"
154 android:layout_marginStart="-2dp"
155 android:layout_marginEnd="-2dp"/>
156
157 <LinearLayout
158 android:layout_width="wrap_content"
159 android:layout_height="match_parent"
160 android:orientation="horizontal"
161 android:layout_gravity="end">
162
163 <Button
164 android:id="@+id/show_media"
165 style="@style/Widget.Conversations.Button.Borderless"
166 android:layout_width="wrap_content"
167 android:layout_height="wrap_content"
168 android:minWidth="0dp"
169 android:paddingLeft="16dp"
170 android:paddingRight="16dp"
171 android:text="@string/view_media"
172 android:textColor="?attr/colorAccent" />
173 </LinearLayout>
174 </LinearLayout>
175 </androidx.cardview.widget.CardView>
176
177 <androidx.cardview.widget.CardView
178 android:id="@+id/keys_wrapper"
179 android:layout_width="fill_parent"
180 android:layout_height="wrap_content"
181 android:layout_marginBottom="@dimen/activity_vertical_margin"
182 android:layout_marginLeft="@dimen/activity_horizontal_margin"
183 android:layout_marginRight="@dimen/activity_horizontal_margin"
184 android:layout_marginTop="@dimen/activity_vertical_margin">
185
186 <LinearLayout
187 android:layout_width="match_parent"
188 android:layout_height="wrap_content"
189 android:orientation="vertical">
190
191 <LinearLayout
192 android:id="@+id/details_contact_keys"
193 android:layout_width="match_parent"
194 android:layout_height="wrap_content"
195 android:orientation="vertical"
196 android:padding="@dimen/card_padding_list"/>
197
198 <LinearLayout
199 android:layout_width="wrap_content"
200 android:layout_height="match_parent"
201 android:layout_marginTop="8dp"
202 android:orientation="horizontal">
203
204
205 <Button
206 android:id="@+id/scan_button"
207 style="@style/Widget.Conversations.Button.Borderless"
208 android:layout_width="wrap_content"
209 android:layout_height="wrap_content"
210 android:minWidth="0dp"
211 android:paddingLeft="16dp"
212 android:paddingRight="16dp"
213 android:text="@string/scan_qr_code"
214 android:textColor="?attr/colorAccent" />
215
216 <Button
217 android:id="@+id/show_inactive_devices"
218 style="@style/Widget.Conversations.Button.Borderless"
219 android:layout_width="wrap_content"
220 android:layout_height="wrap_content"
221 android:minWidth="0dp"
222 android:paddingLeft="16dp"
223 android:paddingRight="16dp"
224 android:text="@string/show_inactive_devices"
225 android:textColor="?attr/colorAccent" />
226 </LinearLayout>
227 </LinearLayout>
228 </androidx.cardview.widget.CardView>
229 </LinearLayout>
230 </ScrollView>
231 </LinearLayout>
232</layout>