1<?xml version="1.0" encoding="utf-8"?>
2<layout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
3
4<androidx.constraintlayout.widget.ConstraintLayout
5 android:layout_width="match_parent"
6 android:layout_height="match_parent">
7
8 <androidx.viewpager.widget.ViewPager
9 android:id="@+id/slideshow_pager"
10 android:layout_width="0dp"
11 android:layout_height="0dp"
12 android:orientation="horizontal"
13 app:layout_constraintBottom_toTopOf="@id/gl_SlidePage"
14 app:layout_constraintEnd_toEndOf="parent"
15 app:layout_constraintStart_toStartOf="parent"
16 app:layout_constraintTop_toTopOf="parent">
17
18 <ScrollView
19 android:layout_width="match_parent"
20 android:layout_height="match_parent"
21 android:fillViewport="true">
22 <LinearLayout
23 android:layout_width="match_parent"
24 android:layout_height="wrap_content"
25 android:orientation="vertical"
26 android:padding="15dp">
27
28 <ImageView
29 android:layout_width="wrap_content"
30 android:layout_height="wrap_content"
31 android:layout_gravity="center"
32 android:padding="15dp"
33 android:src="@drawable/main_logo" />
34
35 <TextView
36 android:layout_width="wrap_content"
37 android:layout_height="wrap_content"
38 android:layout_marginBottom="15dp"
39 android:layout_gravity="center"
40 android:fontFamily="@font/archivoblack"
41 android:textColor="?colorAccent"
42 android:textSize="18sp"
43 android:text="Welcome to Cheogram Android" />
44
45 <TextView
46 android:layout_width="wrap_content"
47 android:layout_height="wrap_content"
48 android:layout_marginBottom="15dp"
49 android:fontFamily="@font/poppins"
50 android:textColor="?attr/edit_text_color"
51 android:text="Cheogram Android is an app that connects you to a global network called Jabber. This network includes services, called gateways, for chatting with other networks such as SMS, IRC, Matrix, and more." />
52
53 <com.wefika.flowlayout.FlowLayout
54 android:layout_width="wrap_content"
55 android:layout_height="wrap_content"
56 android:layout_gravity="center"
57 android:gravity="center"
58 android:orientation="horizontal">
59
60 <com.caverock.androidsvg.SVGImageView
61 android:layout_width="60dp"
62 android:layout_height="60dp"
63 android:layout_margin="10dp"
64 app:svg="@raw/jmp" />
65
66 <ImageView
67 android:layout_width="60dp"
68 android:layout_height="60dp"
69 android:layout_margin="10dp"
70 android:adjustViewBounds="true"
71 android:src="@drawable/android_messages" />
72
73 <ImageView
74 android:layout_width="60dp"
75 android:layout_height="60dp"
76 android:layout_margin="10dp"
77 android:adjustViewBounds="true"
78 android:src="?attr/ic_make_audio_call" />
79
80 <ImageView
81 android:layout_width="60dp"
82 android:layout_height="60dp"
83 android:layout_margin="10dp"
84 android:adjustViewBounds="true"
85 android:src="?attr/icon_email" />
86
87 <ImageView
88 android:layout_width="60dp"
89 android:layout_height="60dp"
90 android:layout_margin="10dp"
91 android:adjustViewBounds="true"
92 android:src="@drawable/irc" />
93
94 <ImageView
95 android:layout_width="60dp"
96 android:layout_height="60dp"
97 android:layout_margin="10dp"
98 android:adjustViewBounds="true"
99 android:src="@drawable/matrix" />
100
101 <ImageView
102 android:layout_width="60dp"
103 android:layout_height="60dp"
104 android:layout_margin="10dp"
105 android:adjustViewBounds="true"
106 android:src="@drawable/jabber" />
107
108 <ImageView
109 android:layout_width="60dp"
110 android:layout_height="60dp"
111 android:layout_margin="10dp"
112 android:adjustViewBounds="true"
113 android:src="@drawable/snikket" />
114
115 <com.caverock.androidsvg.SVGImageView
116 android:layout_width="60dp"
117 android:layout_height="60dp"
118 android:layout_margin="10dp"
119 app:svg="@raw/xmpp" />
120
121 </com.wefika.flowlayout.FlowLayout>
122
123 </LinearLayout>
124 </ScrollView>
125
126 <ScrollView
127 android:layout_width="match_parent"
128 android:layout_height="match_parent"
129 android:fillViewport="true">
130 <LinearLayout
131 android:layout_width="match_parent"
132 android:layout_height="wrap_content"
133 android:orientation="vertical"
134 android:weightSum="1"
135 android:padding="15dp">
136
137 <ImageView
138 android:layout_width="128dp"
139 android:layout_height="128dp"
140 android:layout_gravity="center"
141 android:padding="15dp"
142 android:src="@drawable/jabber" />
143
144 <TextView
145 android:layout_width="wrap_content"
146 android:layout_height="wrap_content"
147 android:layout_marginBottom="15dp"
148 android:layout_gravity="center"
149 android:fontFamily="@font/archivoblack"
150 android:textColor="?colorAccent"
151 android:textSize="18sp"
152 android:text="How the Jabber network works" />
153
154 <TextView
155 android:layout_width="wrap_content"
156 android:layout_height="wrap_content"
157 android:layout_marginBottom="15dp"
158 android:fontFamily="@font/poppins"
159 android:textColor="?attr/edit_text_color"
160 android:text="The Jabber network is powered by a protocol called XMPP. It is a decentralized network, which means no one owns or controls the whole thing. It is a federated network which means anyone can run a Jabber service. Messages to other Jabber users can be end-to-end encrypted by enabling OMEMO for the conversation.\n\nAddresses are called Jabber IDs and look similar to email addresses:" />
161
162 <TextView
163 android:layout_width="wrap_content"
164 android:layout_height="wrap_content"
165 android:layout_marginBottom="30dp"
166 android:layout_gravity="center"
167 android:fontFamily="@font/archivoblack"
168 android:textColor="?colorAccent"
169 android:textSize="18sp"
170 android:text="username@service.com" />
171
172 <com.caverock.androidsvg.SVGImageView
173 android:layout_width="match_parent"
174 android:layout_height="wrap_content"
175 android:layout_weight="1"
176 android:layout_gravity="center"
177 app:svg="@raw/federation_diagram" />
178 </LinearLayout>
179 </ScrollView>
180
181 <LinearLayout
182 android:layout_width="match_parent"
183 android:layout_height="match_parent"
184 android:orientation="vertical">
185
186 <include
187 android:id="@+id/toolbar"
188 layout="@layout/toolbar" />
189
190 <ScrollView
191 android:layout_width="match_parent"
192 android:layout_height="match_parent"
193 android:fillViewport="true">
194
195 <LinearLayout
196 android:layout_width="match_parent"
197 android:layout_height="wrap_content"
198 android:weightSum="2"
199 android:orientation="vertical"
200 android:background="?attr/color_background_primary">
201
202 <RelativeLayout
203 android:layout_width="match_parent"
204 android:layout_height="wrap_content"
205 android:layout_weight="1"
206 android:layout_above="@+id/linearLayout"
207 android:layout_alignParentStart="true"
208 android:layout_alignParentLeft="true">
209
210 <ImageView
211 android:layout_width="wrap_content"
212 android:layout_height="wrap_content"
213 android:layout_centerHorizontal="true"
214 android:layout_centerVertical="true"
215 android:padding="8dp"
216 android:src="@drawable/main_logo" />
217 </RelativeLayout>
218
219 <LinearLayout
220 android:id="@+id/linearLayout"
221 android:layout_width="match_parent"
222 android:layout_height="wrap_content"
223 android:layout_weight="1"
224 android:orientation="vertical"
225 android:paddingLeft="16dp"
226 android:paddingRight="16dp"
227 android:paddingBottom="10dp">
228
229 <Button
230 android:id="@+id/register_new_account"
231 style="@style/Widget.Conversations.Button.Borderless"
232 android:textAllCaps="false"
233 android:textSize="?TextSizeTitle"
234 android:layout_width="match_parent"
235 android:layout_height="wrap_content"
236 android:layout_marginBottom="10dp"
237 android:layout_gravity="center"
238 android:drawableLeft="@drawable/getjid"
239 android:fontFamily="@font/poppins"
240 android:text="@string/create_new_account"
241 android:textColor="?colorAccent" />
242
243 <Button
244 android:id="@+id/use_existing"
245 style="@style/Widget.Conversations.Button.Borderless"
246 android:textAllCaps="false"
247 android:textSize="?TextSizeTitle"
248 android:layout_width="match_parent"
249 android:layout_height="wrap_content"
250 android:layout_marginBottom="10dp"
251 android:layout_gravity="center"
252 android:drawableLeft="@drawable/havejid"
253 android:fontFamily="@font/poppins"
254 android:text="@string/i_already_have_an_account"
255 android:textColor="?colorAccent" />
256
257 <Button
258 android:id="@+id/use_snikket"
259 style="@style/Widget.Conversations.Button.Borderless"
260 android:textAllCaps="false"
261 android:textSize="?TextSizeTitle"
262 android:layout_width="match_parent"
263 android:layout_height="wrap_content"
264 android:layout_gravity="center"
265 android:drawableLeft="@drawable/snikket"
266 android:fontFamily="@font/poppins"
267 android:text="@string/i_am_snikket_user"
268 android:textColor="?colorAccent" />
269
270 <Button
271 android:id="@+id/use_backup"
272 style="@style/Widget.Conversations.Button.Borderless"
273 android:textAllCaps="false"
274 android:textSize="?TextSizeTitle"
275 android:layout_width="match_parent"
276 android:layout_height="wrap_content"
277 android:layout_gravity="center"
278 android:drawableLeft="@drawable/restore"
279 android:fontFamily="@font/poppins"
280 android:text="@string/restore_backup"
281 android:textColor="?colorAccent" />
282 </LinearLayout>
283 </LinearLayout>
284 </ScrollView>
285 </LinearLayout>
286
287 </androidx.viewpager.widget.ViewPager>
288
289 <androidx.constraintlayout.widget.Guideline
290 android:id="@+id/gl_SlidePage"
291 android:layout_width="wrap_content"
292 android:layout_height="wrap_content"
293 android:orientation="horizontal"
294 app:layout_constraintGuide_end="130dp" />
295
296 <androidx.constraintlayout.widget.ConstraintLayout
297 android:id="@+id/frameLayout"
298 android:layout_width="match_parent"
299 android:layout_height="130dp"
300 android:background="?attr/colorPrimary"
301 app:layout_constraintEnd_toEndOf="parent"
302 app:layout_constraintStart_toStartOf="parent"
303 app:layout_constraintTop_toBottomOf="@+id/gl_SlidePage">
304
305 <com.tbuonomo.viewpagerdotsindicator.DotsIndicator
306 android:id="@+id/dots_indicator"
307 android:layout_width="wrap_content"
308 android:layout_height="wrap_content"
309 android:layout_gravity="center"
310 android:layout_marginTop="32dp"
311 app:dotsColor="@color/yeller"
312 app:layout_constraintEnd_toEndOf="parent"
313 app:layout_constraintStart_toStartOf="parent"
314 app:layout_constraintTop_toTopOf="parent"
315 app:selectedDotColor="#FFFFFF" />
316
317 <Button
318 android:id="@+id/button_next"
319 android:layout_width="wrap_content"
320 android:layout_height="wrap_content"
321 android:layout_gravity="center"
322 android:layout_marginTop="16dp"
323 android:layout_marginEnd="32dp"
324 android:layout_marginRight="32dp"
325 android:layout_marginBottom="32dp"
326 android:text="Next"
327 android:textColor="?attr/colorPrimaryDark"
328 app:backgroundTint="@color/yeller"
329 app:layout_constraintBottom_toBottomOf="parent"
330 app:layout_constraintEnd_toEndOf="parent"
331 app:layout_constraintTop_toBottomOf="@id/dots_indicator" />
332
333 <Button
334 android:id="@+id/button_privacy"
335 android:layout_width="wrap_content"
336 android:layout_height="wrap_content"
337 android:layout_gravity="center"
338 android:layout_marginTop="16dp"
339 android:layout_marginEnd="32dp"
340 android:layout_marginRight="32dp"
341 android:layout_marginBottom="32dp"
342 android:text="View Privacy Policy"
343 android:textColor="?attr/colorPrimaryDark"
344 android:visibility="gone"
345 app:backgroundTint="@color/yeller"
346 app:layout_constraintBottom_toBottomOf="parent"
347 app:layout_constraintEnd_toEndOf="parent"
348 app:layout_constraintTop_toBottomOf="@id/dots_indicator" />
349 </androidx.constraintlayout.widget.ConstraintLayout>
350
351 </androidx.constraintlayout.widget.ConstraintLayout>
352
353</layout>