blob: dece55f11a7d280ce07e50cd53959b30b940fb15 [file] [log] [blame]
Sébastien Blinab53ada2019-01-02 17:23:00 -05001<?xml version="1.0" encoding="utf-8"?><!-- Copyright (C) 2016-2019 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
Thibault Wittemberg77cf6002016-11-09 16:53:31 -050025 android:layout_width="match_parent"
Adrien Béraud693b6882019-01-27 14:51:11 -050026 android:layout_height="wrap_content"
27 android:layout_centerHorizontal="true"
28 app:bounded_width="600dp">
Thibault Wittemberg77cf6002016-11-09 16:53:31 -050029
Adrien Béraud693b6882019-01-27 14:51:11 -050030 <LinearLayout
Thibault Wittemberg77cf6002016-11-09 16:53:31 -050031 android:layout_width="match_parent"
32 android:layout_height="wrap_content"
Adrien Béraud693b6882019-01-27 14:51:11 -050033 android:orientation="vertical"
Adrien Béraud91f88742019-09-09 00:46:46 -040034 android:paddingTop="8dp"
35 android:paddingBottom="8dp">
36
37 <RelativeLayout
38 android:id="@+id/settings_dark_theme_layout"
39 android:layout_width="match_parent"
40 android:layout_height="wrap_content"
41 android:orientation="horizontal"
42 android:padding="16dp">
43
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
55 <LinearLayout
56 android:layout_width="wrap_content"
57 android:layout_height="wrap_content"
58 android:layout_centerVertical="true"
59 android:layout_toStartOf="@id/settings_dark_theme"
60 android:layout_toEndOf="@id/theme_image"
61 android:orientation="vertical">
62
63 <TextView
64 style="@style/ListPrimary"
65 android:layout_width="match_parent"
66 android:layout_height="wrap_content"
67 android:lines="1"
68 android:text="@string/pref_darkTheme_title" />
69
70 <TextView
71 style="@style/ListSecondary"
72 android:layout_width="match_parent"
73 android:layout_height="wrap_content"
74 android:text="@string/pref_darkTheme_summary" />
75
76 </LinearLayout>
77
78 <Switch
79 android:id="@+id/settings_dark_theme"
80 android:layout_width="wrap_content"
81 android:layout_height="wrap_content"
82 android:layout_alignParentEnd="true"
83 android:checked="false"
84 android:layout_marginStart="16dp"/>
85
86 </RelativeLayout>
87
Thibault Wittemberg77cf6002016-11-09 16:53:31 -050088
Adrien Béraud693b6882019-01-27 14:51:11 -050089 <!-- Network settings -->
90
Adrien Béraud693b6882019-01-27 14:51:11 -050091 <RelativeLayout
Adrien Béraud4d6c0682019-08-24 21:47:19 -040092 android:id="@+id/settings_video_layout"
Adrien Béraud693b6882019-01-27 14:51:11 -050093 android:layout_width="match_parent"
94 android:layout_height="wrap_content"
95 android:orientation="horizontal"
Adrien Béraud91f88742019-09-09 00:46:46 -040096 android:padding="16dp">
Adrien Béraud693b6882019-01-27 14:51:11 -050097
98 <ImageView
99 android:id="@+id/hwenc_image"
100 android:layout_width="wrap_content"
101 android:layout_height="wrap_content"
102 android:layout_alignParentStart="true"
103 android:layout_centerVertical="true"
104 android:layout_gravity="start"
Adrien Béraud7ebfee92019-01-27 18:22:24 -0500105 android:contentDescription="@string/pref_hwEncode_summary"
Adrien Béraud91f88742019-09-09 00:46:46 -0400106 app:srcCompat="@drawable/baseline_memory_24"
107 android:layout_marginEnd="32dp"/>
Adrien Béraud693b6882019-01-27 14:51:11 -0500108
109 <LinearLayout
110 android:layout_width="wrap_content"
111 android:layout_height="wrap_content"
112 android:layout_centerVertical="true"
Adrien Béraud693b6882019-01-27 14:51:11 -0500113 android:layout_toEndOf="@id/hwenc_image"
114 android:orientation="vertical"
Adrien Béraud91f88742019-09-09 00:46:46 -0400115 android:layout_marginEnd="16dp">
Adrien Béraud693b6882019-01-27 14:51:11 -0500116
117 <TextView
118 style="@style/ListPrimary"
119 android:layout_width="match_parent"
120 android:layout_height="0dp"
121 android:layout_weight="1"
122 android:maxLines="3"
123 android:singleLine="false"
Adrien Béraud4d6c0682019-08-24 21:47:19 -0400124 android:text="@string/pref_video_advanced_title" />
Adrien Béraud693b6882019-01-27 14:51:11 -0500125
126 <TextView
127 android:layout_width="match_parent"
128 android:layout_height="wrap_content"
Adrien Béraud4d6c0682019-08-24 21:47:19 -0400129 android:text="@string/pref_video_advanced_summary" />
Adrien Béraud693b6882019-01-27 14:51:11 -0500130
131 </LinearLayout>
132
Adrien Béraud693b6882019-01-27 14:51:11 -0500133 </RelativeLayout>
134
135 <!-- Contacts settings -->
136
Adrien Béraud91f88742019-09-09 00:46:46 -0400137 <!--
Adrien Béraud693b6882019-01-27 14:51:11 -0500138 <TextView
139 android:layout_width="wrap_content"
140 android:layout_height="wrap_content"
141 android:padding="8dp"
142 android:text="@string/pref_category_contacts"
Adrien Béraud91f88742019-09-09 00:46:46 -0400143 android:textColor="@color/textColorAccent"
144 android:textSize="18sp"
145 android:layout_marginStart="64dp" />
Adrien Béraud693b6882019-01-27 14:51:11 -0500146
147 <RelativeLayout
148 android:layout_width="match_parent"
149 android:layout_height="wrap_content"
150 android:orientation="horizontal"
Adrien Béraud91f88742019-09-09 00:46:46 -0400151 android:padding="16dp">
Adrien Béraud693b6882019-01-27 14:51:11 -0500152
Adrien Béraud91f88742019-09-09 00:46:46 -0400153 <ImageView
Adrien Béraud693b6882019-01-27 14:51:11 -0500154 android:id="@+id/contacts_image"
155 android:layout_width="wrap_content"
156 android:layout_height="wrap_content"
Adrien Béraud91f88742019-09-09 00:46:46 -0400157 android:layout_gravity="start"
158 android:contentDescription="@string/pref_systemContacts_summary"
159 app:srcCompat="@drawable/baseline_group_24"
Adrien Béraud693b6882019-01-27 14:51:11 -0500160 android:layout_alignParentStart="true"
Adrien Béraud91f88742019-09-09 00:46:46 -0400161 android:layout_centerVertical="true"
162 android:layout_marginEnd="32dp"/>
Adrien Béraud693b6882019-01-27 14:51:11 -0500163
164 <LinearLayout
165 android:layout_width="wrap_content"
166 android:layout_height="wrap_content"
167 android:layout_centerVertical="true"
168 android:layout_toStartOf="@+id/settings_contacts"
169 android:layout_toEndOf="@+id/contacts_image"
Adrien Béraud91f88742019-09-09 00:46:46 -0400170 android:orientation="vertical">
Adrien Béraud693b6882019-01-27 14:51:11 -0500171
172 <TextView
173 style="@style/ListPrimary"
174 android:layout_width="match_parent"
175 android:layout_height="wrap_content"
176 android:lines="1"
177 android:text="@string/pref_systemContacts_title" />
178
179 <TextView
180 android:layout_width="match_parent"
181 android:layout_height="wrap_content"
182 android:text="@string/pref_systemContacts_summary" />
183
184 </LinearLayout>
185
186 <Switch
187 android:id="@+id/settings_contacts"
188 android:layout_width="wrap_content"
189 android:layout_height="wrap_content"
190 android:layout_alignParentEnd="true"
Adrien Béraud91f88742019-09-09 00:46:46 -0400191 android:checked="false"
192 android:layout_marginStart="16dp" />
Adrien Béraud693b6882019-01-27 14:51:11 -0500193
Adrien Béraud91f88742019-09-09 00:46:46 -0400194 </RelativeLayout>-->
Adrien Béraud693b6882019-01-27 14:51:11 -0500195
196 <!-- System settings -->
197
198 <TextView
199 android:layout_width="wrap_content"
200 android:layout_height="wrap_content"
201 android:padding="8dp"
202 android:text="@string/pref_category_system"
Adrien Béraud91f88742019-09-09 00:46:46 -0400203 android:textColor="@color/textColorAccent"
204 android:textSize="18sp"
205 android:layout_marginStart="64dp" />
206
207 <RelativeLayout
208 android:id="@+id/settings_push_notifications_layout"
209 android:layout_width="match_parent"
210 android:layout_height="wrap_content"
211 android:orientation="horizontal"
212 android:padding="16dp">
213
214 <ImageView
215 android:id="@+id/push_image"
216 android:layout_width="wrap_content"
217 android:layout_height="wrap_content"
218 android:layout_alignParentStart="true"
219 android:layout_centerVertical="true"
220 android:layout_gravity="start"
221 android:contentDescription="@string/pref_pushNotifications_summary"
222 android:src="@drawable/baseline_notification_important_24"
223 android:layout_marginEnd="32dp"/>
224
225 <LinearLayout
226 android:layout_width="wrap_content"
227 android:layout_height="wrap_content"
228 android:layout_centerVertical="true"
229 android:layout_toStartOf="@id/settings_push_notifications"
230 android:layout_toEndOf="@id/push_image"
231 android:orientation="vertical">
232
233 <TextView
234 style="@style/ListPrimary"
235 android:layout_width="match_parent"
236 android:layout_height="wrap_content"
237 android:lines="1"
238 android:text="@string/pref_pushNotifications_title" />
239
240 <TextView
241 style="@style/ListSecondary"
242 android:layout_width="match_parent"
243 android:layout_height="wrap_content"
244 android:text="@string/pref_pushNotifications_summary" />
245
246 </LinearLayout>
247
248 <Switch
249 android:id="@+id/settings_push_notifications"
250 android:layout_width="wrap_content"
251 android:layout_height="wrap_content"
252 android:layout_alignParentEnd="true"
253 android:checked="false"
254 android:layout_marginStart="16dp"/>
255
256 </RelativeLayout>
Adrien Béraud693b6882019-01-27 14:51:11 -0500257
258 <RelativeLayout
259 android:layout_width="match_parent"
260 android:layout_height="wrap_content"
261 android:orientation="horizontal"
Adrien Béraud91f88742019-09-09 00:46:46 -0400262 android:padding="16dp">
Adrien Béraud693b6882019-01-27 14:51:11 -0500263
Adrien Béraud91f88742019-09-09 00:46:46 -0400264 <ImageView
Adrien Béraud693b6882019-01-27 14:51:11 -0500265 android:id="@+id/system_dialer_image"
266 android:layout_width="wrap_content"
267 android:layout_height="wrap_content"
Adrien Béraud91f88742019-09-09 00:46:46 -0400268 android:layout_gravity="start"
269 android:contentDescription="@string/pref_systemDialer_summary"
270 app:srcCompat="@drawable/baseline_dialpad_24"
Adrien Béraud693b6882019-01-27 14:51:11 -0500271 android:layout_alignParentStart="true"
Adrien Béraud91f88742019-09-09 00:46:46 -0400272 android:layout_centerVertical="true"
273 android:layout_marginEnd="32dp" />
Adrien Béraud693b6882019-01-27 14:51:11 -0500274
275 <LinearLayout
276 android:layout_width="wrap_content"
277 android:layout_height="wrap_content"
278 android:layout_centerVertical="true"
279 android:layout_toStartOf="@+id/settings_place_call"
280 android:layout_toEndOf="@+id/system_dialer_image"
Adrien Béraud91f88742019-09-09 00:46:46 -0400281 android:orientation="vertical">
Aline Bonnet58357512016-12-14 16:55:50 -0500282
283 <TextView
284 style="@style/ListPrimary"
285 android:layout_width="match_parent"
286 android:layout_height="wrap_content"
Aline Bonnet58357512016-12-14 16:55:50 -0500287 android:ellipsize="end"
Pierre Duchemina5529292017-12-18 17:25:54 -0500288 android:lines="1"
Adrien Béraud693b6882019-01-27 14:51:11 -0500289 android:text="@string/pref_systemDialer_title" />
Aline Bonnet58357512016-12-14 16:55:50 -0500290
291 <TextView
292 android:layout_width="match_parent"
293 android:layout_height="wrap_content"
Adrien Béraud693b6882019-01-27 14:51:11 -0500294 android:text="@string/pref_systemDialer_summary" />
Aline Bonnet58357512016-12-14 16:55:50 -0500295
296 </LinearLayout>
297
Adrien Béraud693b6882019-01-27 14:51:11 -0500298 <Switch
299 android:id="@+id/settings_place_call"
300 android:layout_width="wrap_content"
301 android:layout_height="wrap_content"
302 android:layout_alignParentEnd="true"
Adrien Béraud91f88742019-09-09 00:46:46 -0400303 android:checked="false"
304 android:layout_marginStart="16dp" />
Adrien Béraud693b6882019-01-27 14:51:11 -0500305
306 </RelativeLayout>
307
308 <RelativeLayout
309 android:layout_width="match_parent"
310 android:layout_height="wrap_content"
311 android:orientation="horizontal"
Adrien Béraud91f88742019-09-09 00:46:46 -0400312 android:padding="16dp">
Adrien Béraud693b6882019-01-27 14:51:11 -0500313
Adrien Béraud91f88742019-09-09 00:46:46 -0400314 <ImageView
Adrien Béraud693b6882019-01-27 14:51:11 -0500315 android:id="@+id/system_startOnBoot_image"
316 android:layout_width="wrap_content"
317 android:layout_height="wrap_content"
Adrien Béraud91f88742019-09-09 00:46:46 -0400318 android:layout_gravity="start"
319 android:contentDescription="@string/pref_startOnBoot_summary"
320 app:srcCompat="@drawable/baseline_android_24"
Adrien Béraud693b6882019-01-27 14:51:11 -0500321 android:layout_alignParentStart="true"
Adrien Béraud91f88742019-09-09 00:46:46 -0400322 android:layout_centerVertical="true"
323 android:layout_marginEnd="32dp"/>
Adrien Béraud693b6882019-01-27 14:51:11 -0500324
325 <LinearLayout
326 android:layout_width="wrap_content"
327 android:layout_height="wrap_content"
328 android:layout_centerVertical="true"
329 android:layout_toStartOf="@+id/settings_startup"
330 android:layout_toEndOf="@+id/system_startOnBoot_image"
Adrien Béraud91f88742019-09-09 00:46:46 -0400331 android:orientation="vertical">
Adrien Béraud693b6882019-01-27 14:51:11 -0500332
333 <TextView
334 style="@style/ListPrimary"
335 android:layout_width="match_parent"
336 android:layout_height="wrap_content"
337 android:ellipsize="end"
338 android:lines="1"
339 android:text="@string/pref_startOnBoot_title" />
340
341 <TextView
342 android:layout_width="match_parent"
343 android:layout_height="wrap_content"
344 android:text="@string/pref_startOnBoot_summary" />
345
346 </LinearLayout>
347
348 <Switch
349 android:id="@+id/settings_startup"
350 android:layout_width="wrap_content"
351 android:layout_height="wrap_content"
352 android:layout_alignParentEnd="true"
Adrien Béraud91f88742019-09-09 00:46:46 -0400353 android:checked="false"
354 android:layout_marginStart="16dp" />
Adrien Béraud693b6882019-01-27 14:51:11 -0500355
356 </RelativeLayout>
357
358 <!-- Privacy -->
359
360 <RelativeLayout
361 android:layout_width="match_parent"
362 android:layout_height="match_parent"
363 android:orientation="horizontal"
Adrien Béraud91f88742019-09-09 00:46:46 -0400364 android:padding="16dp">
Adrien Béraud693b6882019-01-27 14:51:11 -0500365
Adrien Béraud91f88742019-09-09 00:46:46 -0400366 <ImageView
Adrien Béraud693b6882019-01-27 14:51:11 -0500367 android:id="@+id/system_persistNotification_image"
368 android:layout_width="wrap_content"
369 android:layout_height="wrap_content"
Adrien Béraud91f88742019-09-09 00:46:46 -0400370 android:layout_gravity="start"
371 android:contentDescription="@string/pref_persistNotification_summary"
372 android:src="@drawable/baseline_dns_24"
Adrien Béraud693b6882019-01-27 14:51:11 -0500373 android:layout_alignParentStart="true"
Adrien Béraud91f88742019-09-09 00:46:46 -0400374 android:layout_centerVertical="true"
375 android:layout_marginEnd="32dp"/>
Adrien Béraud693b6882019-01-27 14:51:11 -0500376
377 <LinearLayout
378 android:layout_width="wrap_content"
379 android:layout_height="wrap_content"
380 android:layout_centerVertical="true"
381 android:layout_toStartOf="@+id/settings_persistNotification"
382 android:layout_toEndOf="@+id/system_persistNotification_image"
Adrien Béraud91f88742019-09-09 00:46:46 -0400383 android:orientation="vertical">
Adrien Béraud693b6882019-01-27 14:51:11 -0500384
385 <TextView
386 style="@style/ListPrimary"
387 android:layout_width="match_parent"
388 android:layout_height="wrap_content"
389 android:ellipsize="end"
390 android:lines="1"
391 android:text="@string/pref_persistNotification_title" />
392
393 <TextView
394 android:layout_width="match_parent"
395 android:layout_height="wrap_content"
396 android:text="@string/pref_persistNotification_summary" />
397
398 </LinearLayout>
399
400 <Switch
401 android:id="@+id/settings_persistNotification"
402 android:layout_width="wrap_content"
403 android:layout_height="wrap_content"
404 android:layout_alignParentEnd="true"
Adrien Béraud91f88742019-09-09 00:46:46 -0400405 android:checked="false"
406 android:layout_marginStart="16dp"/>
Adrien Béraud693b6882019-01-27 14:51:11 -0500407
408 </RelativeLayout>
409
410 <TextView
411 android:layout_width="wrap_content"
412 android:layout_height="wrap_content"
413 android:padding="8dp"
Adrien Béraud91f88742019-09-09 00:46:46 -0400414 android:layout_marginStart="64dp"
Adrien Béraud693b6882019-01-27 14:51:11 -0500415 android:text="@string/pref_category_privacy"
Adrien Béraud91f88742019-09-09 00:46:46 -0400416 android:textColor="@color/textColorAccent"
Adrien Béraud693b6882019-01-27 14:51:11 -0500417 android:textSize="18sp" />
418
Adrien Béraud91f88742019-09-09 00:46:46 -0400419 <RelativeLayout
Adrien Béraud693b6882019-01-27 14:51:11 -0500420 android:id="@+id/settings_clear_history"
421 android:layout_width="match_parent"
Adrien Béraud91f88742019-09-09 00:46:46 -0400422 android:layout_height="match_parent"
423 android:orientation="horizontal"
424 android:weightSum="1"
Adrien Béraud693b6882019-01-27 14:51:11 -0500425 android:background="?attr/selectableItemBackground"
Adrien Béraud91f88742019-09-09 00:46:46 -0400426 android:padding="16dp">
427
428 <ImageView
429 android:id="@+id/system_clear_history_image"
430 android:layout_width="wrap_content"
431 android:layout_height="wrap_content"
432 android:layout_gravity="start"
433 android:contentDescription="@string/pref_clearHistory_summary"
434 android:src="@drawable/baseline_clear_all_24"
435 android:layout_alignParentStart="true"
436 android:layout_centerVertical="true"
437 android:layout_marginEnd="32dp" />
Adrien Béraud693b6882019-01-27 14:51:11 -0500438
439 <TextView
440 style="@style/ListPrimary"
Adrien Béraud91f88742019-09-09 00:46:46 -0400441 android:id="@+id/system_clear_history_title"
Adrien Béraud693b6882019-01-27 14:51:11 -0500442 android:layout_width="match_parent"
443 android:layout_height="wrap_content"
444 android:ellipsize="end"
445 android:lines="1"
Adrien Béraud91f88742019-09-09 00:46:46 -0400446 android:text="@string/pref_clearHistory_title"
447 android:layout_toEndOf="@+id/system_clear_history_image"/>
Adrien Béraud693b6882019-01-27 14:51:11 -0500448
449 <TextView
450 android:layout_width="match_parent"
451 android:layout_height="wrap_content"
Adrien Béraud91f88742019-09-09 00:46:46 -0400452 android:text="@string/pref_clearHistory_summary"
453 android:layout_toEndOf="@+id/system_clear_history_image"
454 android:layout_below="@id/system_clear_history_title"/>
Adrien Béraud693b6882019-01-27 14:51:11 -0500455
Adrien Béraud91f88742019-09-09 00:46:46 -0400456 </RelativeLayout>
Adrien Béraud693b6882019-01-27 14:51:11 -0500457
458 </LinearLayout>
459 </cx.ring.views.BoundedScrollView>
460</RelativeLayout>