blob: 5832400a76a62dd3a7f5565e7ede3ecc930ea4b7 [file] [log] [blame]
Adrien Béraude552f692020-11-03 14:30:52 -05001<?xml version="1.0" encoding="utf-8"?><!-- Copyright (C) 2016-2020 Savoir-faire Linux Inc.
Thibault Wittemberg77cf6002016-11-09 16:53:31 -05002
3Author: Thibault Wittemberg <thibault.wittemberg@savoirfairelinux.com>
Adrien Béraud746de672018-09-18 01:18:23 -04004Author: Adrien Béraud <adrien.beraud@savoirfairelinux.com>
Thibault Wittemberg77cf6002016-11-09 16:53:31 -05005
6This program is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 3 of the License, or
9(at your option) any later version.
10
11This program is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with this program. If not, see <http://www.gnu.org/licenses/>.
18-->
Adrien Béraud693b6882019-01-27 14:51:11 -050019<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
Aline Bonnet58357512016-12-14 16:55:50 -050020 xmlns:app="http://schemas.android.com/apk/res-auto"
Thibault Wittemberg77cf6002016-11-09 16:53:31 -050021 android:layout_width="match_parent"
22 android:layout_height="match_parent">
23
Adrien Béraud693b6882019-01-27 14:51:11 -050024 <cx.ring.views.BoundedScrollView
Adrien Béraudb96a7d92020-02-24 11:55:05 -050025 android:id="@+id/scrollview"
Thibault Wittemberg77cf6002016-11-09 16:53:31 -050026 android:layout_width="match_parent"
Adrien Béraud693b6882019-01-27 14:51:11 -050027 android:layout_height="wrap_content"
28 android:layout_centerHorizontal="true"
29 app:bounded_width="600dp">
Thibault Wittemberg77cf6002016-11-09 16:53:31 -050030
Adrien Béraud693b6882019-01-27 14:51:11 -050031 <LinearLayout
Thibault Wittemberg77cf6002016-11-09 16:53:31 -050032 android:layout_width="match_parent"
33 android:layout_height="wrap_content"
Adrien Béraud693b6882019-01-27 14:51:11 -050034 android:orientation="vertical"
Adrien Béraud91f88742019-09-09 00:46:46 -040035 android:paddingTop="8dp"
36 android:paddingBottom="8dp">
37
38 <RelativeLayout
39 android:id="@+id/settings_dark_theme_layout"
40 android:layout_width="match_parent"
41 android:layout_height="wrap_content"
Adrien Béraude1826782019-09-29 13:52:25 -040042 android:padding="@dimen/padding_large">
Adrien Béraud91f88742019-09-09 00:46:46 -040043
44 <ImageView
45 android:id="@+id/theme_image"
46 android:layout_width="wrap_content"
47 android:layout_height="wrap_content"
48 android:layout_alignParentStart="true"
49 android:layout_centerVertical="true"
50 android:layout_gravity="start"
51 android:contentDescription="@string/pref_darkTheme_summary"
52 android:src="@drawable/baseline_invert_colors_24"
53 android:layout_marginEnd="32dp"/>
54
Adrien Béraude1826782019-09-29 13:52:25 -040055 <TextView
56 android:id="@+id/theme_title"
57 style="@style/ListPrimary"
58 android:layout_width="match_parent"
Adrien Béraud91f88742019-09-09 00:46:46 -040059 android:layout_height="wrap_content"
Adrien Béraude1826782019-09-29 13:52:25 -040060 android:lines="1"
61 android:text="@string/pref_darkTheme_title"
62 android:layout_toStartOf="@id/settings_dark_theme"
63 android:layout_toEndOf="@id/theme_image" />
64
65 <TextView
66 style="@style/ListSecondary"
67 android:layout_width="match_parent"
68 android:layout_height="wrap_content"
69 android:text="@string/pref_darkTheme_summary"
Adrien Béraud91f88742019-09-09 00:46:46 -040070 android:layout_toStartOf="@id/settings_dark_theme"
71 android:layout_toEndOf="@id/theme_image"
Adrien Béraude1826782019-09-29 13:52:25 -040072 android:layout_below="@id/theme_title" />
Adrien Béraud91f88742019-09-09 00:46:46 -040073
74 <Switch
75 android:id="@+id/settings_dark_theme"
76 android:layout_width="wrap_content"
77 android:layout_height="wrap_content"
78 android:layout_alignParentEnd="true"
79 android:checked="false"
Adrien Béraude1826782019-09-29 13:52:25 -040080 android:layout_marginStart="16dp"
81 android:layout_centerVertical="true"/>
Adrien Béraud91f88742019-09-09 00:46:46 -040082
83 </RelativeLayout>
84
Adrien Béraud693b6882019-01-27 14:51:11 -050085 <!-- Network settings -->
86
Adrien Béraud693b6882019-01-27 14:51:11 -050087 <RelativeLayout
Adrien Béraud4d6c0682019-08-24 21:47:19 -040088 android:id="@+id/settings_video_layout"
Adrien Béraud693b6882019-01-27 14:51:11 -050089 android:layout_width="match_parent"
90 android:layout_height="wrap_content"
Adrien Béraude1826782019-09-29 13:52:25 -040091 android:padding="@dimen/padding_large">
Adrien Béraud693b6882019-01-27 14:51:11 -050092
93 <ImageView
94 android:id="@+id/hwenc_image"
95 android:layout_width="wrap_content"
96 android:layout_height="wrap_content"
97 android:layout_alignParentStart="true"
98 android:layout_centerVertical="true"
Adrien Béraud91f88742019-09-09 00:46:46 -040099 app:srcCompat="@drawable/baseline_memory_24"
100 android:layout_marginEnd="32dp"/>
Adrien Béraud693b6882019-01-27 14:51:11 -0500101
Adrien Béraude1826782019-09-29 13:52:25 -0400102 <TextView
103 android:id="@+id/hwenc_title"
104 style="@style/ListPrimary"
105 android:layout_width="match_parent"
Adrien Béraud693b6882019-01-27 14:51:11 -0500106 android:layout_height="wrap_content"
Adrien Béraude1826782019-09-29 13:52:25 -0400107 android:maxLines="3"
108 android:singleLine="false"
109 android:text="@string/pref_video_advanced_title"
Adrien Béraud693b6882019-01-27 14:51:11 -0500110 android:layout_toEndOf="@id/hwenc_image"
Adrien Béraude1826782019-09-29 13:52:25 -0400111 android:layout_marginEnd="16dp" />
Adrien Béraud693b6882019-01-27 14:51:11 -0500112
Adrien Béraude1826782019-09-29 13:52:25 -0400113 <TextView
114 style="@style/ListSecondary"
115 android:layout_width="match_parent"
116 android:layout_height="wrap_content"
117 android:text="@string/pref_video_advanced_summary"
118 android:layout_toEndOf="@id/hwenc_image"
119 android:layout_marginEnd="16dp"
120 android:layout_below="@id/hwenc_title"/>
Adrien Béraud693b6882019-01-27 14:51:11 -0500121
Adrien Béraud693b6882019-01-27 14:51:11 -0500122 </RelativeLayout>
123
Aline Gondim Santosf781c5b2020-06-26 12:44:44 -0400124 <RelativeLayout
125 android:id="@+id/settings_plugins_layout"
126 android:layout_width="match_parent"
127 android:layout_height="wrap_content"
128 android:padding="@dimen/padding_large">
129
130 <ImageView
131 android:id="@+id/plugins_image"
132 android:layout_width="wrap_content"
133 android:layout_height="wrap_content"
134 android:layout_alignParentStart="true"
135 android:layout_centerVertical="true"
136 android:contentDescription="@string/pref_plugins_summary"
137 app:srcCompat="@drawable/ic_plugin"
138 android:layout_marginEnd="32dp"/>
139 <LinearLayout
140 android:layout_width="wrap_content"
141 android:layout_height="wrap_content"
142 android:layout_centerVertical="true"
143 android:layout_toStartOf="@+id/settings_plugins_switch"
144 android:layout_toEndOf="@+id/plugins_image"
145 android:orientation="vertical">
146 <TextView
147 android:id="@+id/plugins_title"
148 style="@style/ListPrimary"
149 android:layout_width="match_parent"
150 android:layout_height="wrap_content"
151 android:maxLines="3"
152 android:singleLine="false"
153 android:text="@string/pref_plugins_title"
154 android:layout_toEndOf="@id/plugins_image"
155 android:layout_marginEnd="16dp" />
156
157 <TextView
158 style="@style/ListSecondary"
159 android:layout_width="match_parent"
160 android:layout_height="wrap_content"
161 android:text="@string/pref_plugins_summary"
162 android:layout_toEndOf="@id/plugins_image"
163 android:layout_marginEnd="16dp"
164 android:layout_below="@id/plugins_title"/>
165
166 </LinearLayout>
167
168 <Switch
169 android:id="@+id/settings_plugins_switch"
170 android:layout_width="wrap_content"
171 android:layout_height="wrap_content"
172 android:layout_alignParentEnd="true"
173 android:checked="false"
174 android:layout_marginStart="16dp"
175 android:layout_centerVertical="true"/>
176
177 </RelativeLayout>
178
Adrien Béraud693b6882019-01-27 14:51:11 -0500179 <!-- Contacts settings -->
180
Adrien Béraud91f88742019-09-09 00:46:46 -0400181 <!--
Adrien Béraud693b6882019-01-27 14:51:11 -0500182 <TextView
183 android:layout_width="wrap_content"
184 android:layout_height="wrap_content"
185 android:padding="8dp"
186 android:text="@string/pref_category_contacts"
Adrien Béraud91f88742019-09-09 00:46:46 -0400187 android:textColor="@color/textColorAccent"
188 android:textSize="18sp"
189 android:layout_marginStart="64dp" />
Adrien Béraud693b6882019-01-27 14:51:11 -0500190
191 <RelativeLayout
192 android:layout_width="match_parent"
193 android:layout_height="wrap_content"
Adrien Béraud91f88742019-09-09 00:46:46 -0400194 android:padding="16dp">
Adrien Béraud693b6882019-01-27 14:51:11 -0500195
Adrien Béraud91f88742019-09-09 00:46:46 -0400196 <ImageView
Adrien Béraud693b6882019-01-27 14:51:11 -0500197 android:id="@+id/contacts_image"
198 android:layout_width="wrap_content"
199 android:layout_height="wrap_content"
Adrien Béraud91f88742019-09-09 00:46:46 -0400200 android:contentDescription="@string/pref_systemContacts_summary"
201 app:srcCompat="@drawable/baseline_group_24"
Adrien Béraud693b6882019-01-27 14:51:11 -0500202 android:layout_alignParentStart="true"
Adrien Béraud91f88742019-09-09 00:46:46 -0400203 android:layout_centerVertical="true"
204 android:layout_marginEnd="32dp"/>
Adrien Béraud693b6882019-01-27 14:51:11 -0500205
206 <LinearLayout
207 android:layout_width="wrap_content"
208 android:layout_height="wrap_content"
209 android:layout_centerVertical="true"
210 android:layout_toStartOf="@+id/settings_contacts"
211 android:layout_toEndOf="@+id/contacts_image"
Adrien Béraud91f88742019-09-09 00:46:46 -0400212 android:orientation="vertical">
Adrien Béraud693b6882019-01-27 14:51:11 -0500213
214 <TextView
215 style="@style/ListPrimary"
216 android:layout_width="match_parent"
217 android:layout_height="wrap_content"
218 android:lines="1"
219 android:text="@string/pref_systemContacts_title" />
220
221 <TextView
222 android:layout_width="match_parent"
223 android:layout_height="wrap_content"
224 android:text="@string/pref_systemContacts_summary" />
225
226 </LinearLayout>
227
228 <Switch
229 android:id="@+id/settings_contacts"
230 android:layout_width="wrap_content"
231 android:layout_height="wrap_content"
232 android:layout_alignParentEnd="true"
Adrien Béraud91f88742019-09-09 00:46:46 -0400233 android:checked="false"
234 android:layout_marginStart="16dp" />
Adrien Béraud693b6882019-01-27 14:51:11 -0500235
Adrien Béraud91f88742019-09-09 00:46:46 -0400236 </RelativeLayout>-->
Adrien Béraud693b6882019-01-27 14:51:11 -0500237
Amirhossein02e37c72021-01-08 15:02:26 -0500238 <!-- Privacy -->
239
240 <TextView
241 android:layout_width="wrap_content"
242 android:layout_height="wrap_content"
243 android:padding="8dp"
244 android:layout_marginStart="64dp"
245 android:text="@string/pref_category_privacy"
246 android:textColor="@color/textColorAccent"
247 android:textSize="18sp" />
248
249 <RelativeLayout
250 android:layout_width="match_parent"
251 android:layout_height="match_parent"
252 android:padding="@dimen/padding_large">
253
254 <ImageView
255 android:id="@+id/system_typing_image"
256 android:layout_width="wrap_content"
257 android:layout_height="wrap_content"
258 android:contentDescription="@string/pref_typing_summary"
259 android:src="@drawable/baseline_keyboard_24"
260 android:layout_alignParentStart="true"
261 android:layout_centerVertical="true"
262 android:layout_marginEnd="32dp"/>
263
264 <LinearLayout
265 android:layout_width="wrap_content"
266 android:layout_height="wrap_content"
267 android:layout_centerVertical="true"
268 android:layout_toStartOf="@+id/settings_typing"
269 android:layout_toEndOf="@+id/system_typing_image"
270 android:orientation="vertical">
271
272 <TextView
273 style="@style/ListPrimary"
274 android:layout_width="match_parent"
275 android:layout_height="wrap_content"
276 android:ellipsize="end"
277 android:lines="1"
278 android:text="@string/pref_typing_title" />
279
280 <TextView
281 style="@style/ListSecondary"
282 android:layout_width="match_parent"
283 android:layout_height="wrap_content"
284 android:text="@string/pref_typing_summary" />
285
286 </LinearLayout>
287
288 <Switch
289 android:id="@+id/settings_typing"
290 android:layout_width="wrap_content"
291 android:layout_height="wrap_content"
292 android:layout_alignParentEnd="true"
293 android:checked="true"
294 android:layout_marginStart="16dp"
295 android:layout_centerVertical="true"/>
296
297 </RelativeLayout>
298
299 <RelativeLayout
300 android:layout_width="match_parent"
301 android:layout_height="match_parent"
302 android:padding="@dimen/padding_large">
303
304 <ImageView
305 android:id="@+id/system_read_image"
306 android:layout_width="wrap_content"
307 android:layout_height="wrap_content"
308 android:contentDescription="@string/pref_read_summary"
309 android:src="@drawable/baseline_mark_chat_read_24dp"
310 android:layout_alignParentStart="true"
311 app:tint="@color/colorPrimary"
312 android:layout_centerVertical="true"
313 android:layout_marginEnd="32dp"/>
314
315 <LinearLayout
316 android:layout_width="wrap_content"
317 android:layout_height="wrap_content"
318 android:layout_centerVertical="true"
319 android:layout_toStartOf="@+id/settings_read"
320 android:layout_toEndOf="@+id/system_read_image"
321 android:orientation="vertical">
322
323 <TextView
324 style="@style/ListPrimary"
325 android:layout_width="match_parent"
326 android:layout_height="wrap_content"
327 android:ellipsize="end"
328 android:lines="1"
329 android:text="@string/pref_read_title" />
330
331 <TextView
332 style="@style/ListSecondary"
333 android:layout_width="match_parent"
334 android:layout_height="wrap_content"
335 android:text="@string/pref_read_summary" />
336
337 </LinearLayout>
338
339 <Switch
340 android:id="@+id/settings_read"
341 android:layout_width="wrap_content"
342 android:layout_height="wrap_content"
343 android:layout_alignParentEnd="true"
344 android:checked="true"
345 android:layout_marginStart="16dp"
346 android:layout_centerVertical="true"/>
347
348 </RelativeLayout>
349
350 <RelativeLayout
Amirhossein7bb77aa2020-12-18 16:30:44 -0500351 android:layout_width="match_parent"
352 android:layout_height="match_parent"
353 android:padding="@dimen/padding_large">
354
355 <ImageView
356 android:id="@+id/system_block_record_image"
357 android:layout_width="wrap_content"
358 android:layout_height="wrap_content"
359 android:contentDescription="@string/pref_read_summary"
360 android:src="@drawable/baseline_stop_screen_share_24dp"
361 android:layout_alignParentStart="true"
362 app:tint="@color/colorPrimary"
363 android:layout_centerVertical="true"
364 android:layout_marginEnd="32dp"/>
365
366 <LinearLayout
367 android:layout_width="wrap_content"
368 android:layout_height="wrap_content"
369 android:layout_centerVertical="true"
370 android:layout_toStartOf="@+id/settings_block_record"
371 android:layout_toEndOf="@+id/system_block_record_image"
372 android:orientation="vertical">
373
374 <TextView
375 style="@style/ListPrimary"
376 android:layout_width="match_parent"
377 android:layout_height="wrap_content"
378 android:ellipsize="end"
379 android:lines="1"
380 android:text="@string/pref_block_record_title" />
381
382 <TextView
383 style="@style/ListSecondary"
384 android:layout_width="match_parent"
385 android:layout_height="wrap_content"
386 android:text="@string/pref_block_record_summary" />
387
388 </LinearLayout>
389
390 <Switch
391 android:id="@+id/settings_block_record"
392 android:layout_width="wrap_content"
393 android:layout_height="wrap_content"
394 android:layout_alignParentEnd="true"
395 android:checked="false"
396 android:layout_marginStart="16dp"
397 android:layout_centerVertical="true"/>
398
399 </RelativeLayout>
400
401 <RelativeLayout
Amirhossein02e37c72021-01-08 15:02:26 -0500402 android:id="@+id/settings_clear_history"
403 android:layout_width="match_parent"
404 android:layout_height="match_parent"
405 android:background="?attr/selectableItemBackground"
406 android:padding="@dimen/padding_large">
407
408 <ImageView
409 android:id="@+id/system_clear_history_image"
410 android:layout_width="wrap_content"
411 android:layout_height="wrap_content"
412 android:layout_gravity="start"
413 android:contentDescription="@string/pref_clearHistory_summary"
414 android:src="@drawable/baseline_clear_all_24"
415 android:layout_alignParentStart="true"
416 android:layout_centerVertical="true"
417 android:layout_marginEnd="32dp" />
418
419 <TextView
420 style="@style/ListPrimary"
421 android:id="@+id/system_clear_history_title"
422 android:layout_width="match_parent"
423 android:layout_height="wrap_content"
424 android:ellipsize="end"
425 android:lines="1"
426 android:text="@string/pref_clearHistory_title"
427 android:layout_toEndOf="@+id/system_clear_history_image"/>
428
429 <TextView
430 style="@style/ListSecondary"
431 android:layout_width="match_parent"
432 android:layout_height="wrap_content"
433 android:text="@string/pref_clearHistory_summary"
434 android:layout_toEndOf="@+id/system_clear_history_image"
435 android:layout_below="@id/system_clear_history_title"/>
436
437 </RelativeLayout>
438
Adrien Béraud693b6882019-01-27 14:51:11 -0500439 <!-- System settings -->
440
441 <TextView
442 android:layout_width="wrap_content"
443 android:layout_height="wrap_content"
444 android:padding="8dp"
445 android:text="@string/pref_category_system"
Adrien Béraud91f88742019-09-09 00:46:46 -0400446 android:textColor="@color/textColorAccent"
447 android:textSize="18sp"
448 android:layout_marginStart="64dp" />
449
450 <RelativeLayout
451 android:id="@+id/settings_push_notifications_layout"
452 android:layout_width="match_parent"
453 android:layout_height="wrap_content"
Adrien Béraude1826782019-09-29 13:52:25 -0400454 android:padding="@dimen/padding_large">
Adrien Béraud91f88742019-09-09 00:46:46 -0400455
456 <ImageView
457 android:id="@+id/push_image"
458 android:layout_width="wrap_content"
459 android:layout_height="wrap_content"
460 android:layout_alignParentStart="true"
461 android:layout_centerVertical="true"
Adrien Béraud91f88742019-09-09 00:46:46 -0400462 android:contentDescription="@string/pref_pushNotifications_summary"
463 android:src="@drawable/baseline_notification_important_24"
464 android:layout_marginEnd="32dp"/>
465
466 <LinearLayout
467 android:layout_width="wrap_content"
468 android:layout_height="wrap_content"
469 android:layout_centerVertical="true"
470 android:layout_toStartOf="@id/settings_push_notifications"
471 android:layout_toEndOf="@id/push_image"
472 android:orientation="vertical">
473
474 <TextView
475 style="@style/ListPrimary"
476 android:layout_width="match_parent"
477 android:layout_height="wrap_content"
478 android:lines="1"
479 android:text="@string/pref_pushNotifications_title" />
480
481 <TextView
482 style="@style/ListSecondary"
483 android:layout_width="match_parent"
484 android:layout_height="wrap_content"
485 android:text="@string/pref_pushNotifications_summary" />
486
487 </LinearLayout>
488
489 <Switch
490 android:id="@+id/settings_push_notifications"
491 android:layout_width="wrap_content"
492 android:layout_height="wrap_content"
493 android:layout_alignParentEnd="true"
494 android:checked="false"
Adrien Béraude1826782019-09-29 13:52:25 -0400495 android:layout_marginStart="16dp"
496 android:layout_centerVertical="true"/>
Adrien Béraud91f88742019-09-09 00:46:46 -0400497
498 </RelativeLayout>
Adrien Béraud693b6882019-01-27 14:51:11 -0500499
500 <RelativeLayout
501 android:layout_width="match_parent"
502 android:layout_height="wrap_content"
Adrien Béraude1826782019-09-29 13:52:25 -0400503 android:padding="@dimen/padding_large">
Adrien Béraud693b6882019-01-27 14:51:11 -0500504
Adrien Béraud91f88742019-09-09 00:46:46 -0400505 <ImageView
Adrien Béraud693b6882019-01-27 14:51:11 -0500506 android:id="@+id/system_dialer_image"
507 android:layout_width="wrap_content"
508 android:layout_height="wrap_content"
Adrien Béraud91f88742019-09-09 00:46:46 -0400509 android:contentDescription="@string/pref_systemDialer_summary"
510 app:srcCompat="@drawable/baseline_dialpad_24"
Adrien Béraud693b6882019-01-27 14:51:11 -0500511 android:layout_alignParentStart="true"
Adrien Béraud91f88742019-09-09 00:46:46 -0400512 android:layout_centerVertical="true"
513 android:layout_marginEnd="32dp" />
Adrien Béraud693b6882019-01-27 14:51:11 -0500514
515 <LinearLayout
516 android:layout_width="wrap_content"
517 android:layout_height="wrap_content"
518 android:layout_centerVertical="true"
519 android:layout_toStartOf="@+id/settings_place_call"
520 android:layout_toEndOf="@+id/system_dialer_image"
Adrien Béraud91f88742019-09-09 00:46:46 -0400521 android:orientation="vertical">
Aline Bonnet58357512016-12-14 16:55:50 -0500522
523 <TextView
524 style="@style/ListPrimary"
525 android:layout_width="match_parent"
526 android:layout_height="wrap_content"
Aline Bonnet58357512016-12-14 16:55:50 -0500527 android:ellipsize="end"
Pierre Duchemina5529292017-12-18 17:25:54 -0500528 android:lines="1"
Adrien Béraud693b6882019-01-27 14:51:11 -0500529 android:text="@string/pref_systemDialer_title" />
Aline Bonnet58357512016-12-14 16:55:50 -0500530
531 <TextView
Adrien Béraudc8599a32019-09-26 10:20:39 -0400532 style="@style/ListSecondary"
Aline Bonnet58357512016-12-14 16:55:50 -0500533 android:layout_width="match_parent"
534 android:layout_height="wrap_content"
Adrien Béraud693b6882019-01-27 14:51:11 -0500535 android:text="@string/pref_systemDialer_summary" />
Aline Bonnet58357512016-12-14 16:55:50 -0500536
537 </LinearLayout>
538
Adrien Béraud693b6882019-01-27 14:51:11 -0500539 <Switch
540 android:id="@+id/settings_place_call"
541 android:layout_width="wrap_content"
542 android:layout_height="wrap_content"
543 android:layout_alignParentEnd="true"
Adrien Béraud91f88742019-09-09 00:46:46 -0400544 android:checked="false"
Adrien Béraude1826782019-09-29 13:52:25 -0400545 android:layout_marginStart="16dp"
546 android:layout_centerVertical="true"/>
Adrien Béraud693b6882019-01-27 14:51:11 -0500547
548 </RelativeLayout>
549
550 <RelativeLayout
551 android:layout_width="match_parent"
552 android:layout_height="wrap_content"
Adrien Béraude1826782019-09-29 13:52:25 -0400553 android:padding="@dimen/padding_large">
Adrien Béraud693b6882019-01-27 14:51:11 -0500554
Adrien Béraud91f88742019-09-09 00:46:46 -0400555 <ImageView
Adrien Béraud693b6882019-01-27 14:51:11 -0500556 android:id="@+id/system_startOnBoot_image"
557 android:layout_width="wrap_content"
558 android:layout_height="wrap_content"
Adrien Béraud91f88742019-09-09 00:46:46 -0400559 android:contentDescription="@string/pref_startOnBoot_summary"
560 app:srcCompat="@drawable/baseline_android_24"
Adrien Béraud693b6882019-01-27 14:51:11 -0500561 android:layout_alignParentStart="true"
Adrien Béraud91f88742019-09-09 00:46:46 -0400562 android:layout_centerVertical="true"
563 android:layout_marginEnd="32dp"/>
Adrien Béraud693b6882019-01-27 14:51:11 -0500564
565 <LinearLayout
566 android:layout_width="wrap_content"
567 android:layout_height="wrap_content"
568 android:layout_centerVertical="true"
569 android:layout_toStartOf="@+id/settings_startup"
570 android:layout_toEndOf="@+id/system_startOnBoot_image"
Adrien Béraud91f88742019-09-09 00:46:46 -0400571 android:orientation="vertical">
Adrien Béraud693b6882019-01-27 14:51:11 -0500572
573 <TextView
574 style="@style/ListPrimary"
575 android:layout_width="match_parent"
576 android:layout_height="wrap_content"
577 android:ellipsize="end"
578 android:lines="1"
579 android:text="@string/pref_startOnBoot_title" />
580
581 <TextView
Adrien Béraudc8599a32019-09-26 10:20:39 -0400582 style="@style/ListSecondary"
Adrien Béraud693b6882019-01-27 14:51:11 -0500583 android:layout_width="match_parent"
584 android:layout_height="wrap_content"
585 android:text="@string/pref_startOnBoot_summary" />
586
587 </LinearLayout>
588
589 <Switch
590 android:id="@+id/settings_startup"
591 android:layout_width="wrap_content"
592 android:layout_height="wrap_content"
593 android:layout_alignParentEnd="true"
Adrien Béraud91f88742019-09-09 00:46:46 -0400594 android:checked="false"
Adrien Béraude1826782019-09-29 13:52:25 -0400595 android:layout_marginStart="16dp"
596 android:layout_centerVertical="true"/>
Adrien Béraud693b6882019-01-27 14:51:11 -0500597
598 </RelativeLayout>
599
Adrien Béraud693b6882019-01-27 14:51:11 -0500600 <RelativeLayout
601 android:layout_width="match_parent"
602 android:layout_height="match_parent"
Adrien Béraude1826782019-09-29 13:52:25 -0400603 android:padding="@dimen/padding_large">
Adrien Béraud693b6882019-01-27 14:51:11 -0500604
Adrien Béraud91f88742019-09-09 00:46:46 -0400605 <ImageView
Adrien Béraud693b6882019-01-27 14:51:11 -0500606 android:id="@+id/system_persistNotification_image"
607 android:layout_width="wrap_content"
608 android:layout_height="wrap_content"
Adrien Béraud91f88742019-09-09 00:46:46 -0400609 android:contentDescription="@string/pref_persistNotification_summary"
610 android:src="@drawable/baseline_dns_24"
Adrien Béraud693b6882019-01-27 14:51:11 -0500611 android:layout_alignParentStart="true"
Adrien Béraud91f88742019-09-09 00:46:46 -0400612 android:layout_centerVertical="true"
613 android:layout_marginEnd="32dp"/>
Adrien Béraud693b6882019-01-27 14:51:11 -0500614
615 <LinearLayout
616 android:layout_width="wrap_content"
617 android:layout_height="wrap_content"
618 android:layout_centerVertical="true"
619 android:layout_toStartOf="@+id/settings_persistNotification"
620 android:layout_toEndOf="@+id/system_persistNotification_image"
Adrien Béraud91f88742019-09-09 00:46:46 -0400621 android:orientation="vertical">
Adrien Béraud693b6882019-01-27 14:51:11 -0500622
623 <TextView
624 style="@style/ListPrimary"
625 android:layout_width="match_parent"
626 android:layout_height="wrap_content"
627 android:ellipsize="end"
628 android:lines="1"
629 android:text="@string/pref_persistNotification_title" />
630
631 <TextView
Adrien Béraudc8599a32019-09-26 10:20:39 -0400632 style="@style/ListSecondary"
Adrien Béraud693b6882019-01-27 14:51:11 -0500633 android:layout_width="match_parent"
634 android:layout_height="wrap_content"
635 android:text="@string/pref_persistNotification_summary" />
636
637 </LinearLayout>
638
639 <Switch
640 android:id="@+id/settings_persistNotification"
641 android:layout_width="wrap_content"
642 android:layout_height="wrap_content"
643 android:layout_alignParentEnd="true"
Adrien Béraud91f88742019-09-09 00:46:46 -0400644 android:checked="false"
Adrien Béraude1826782019-09-29 13:52:25 -0400645 android:layout_marginStart="16dp"
646 android:layout_centerVertical="true"/>
Adrien Béraud693b6882019-01-27 14:51:11 -0500647
648 </RelativeLayout>
649
Adrien Béraud693b6882019-01-27 14:51:11 -0500650 </LinearLayout>
651 </cx.ring.views.BoundedScrollView>
652</RelativeLayout>