blob: b4fb70bb72dff963ce9a1ded2a0b396c3dc1409d [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"
Adrien Béraude1826782019-09-29 13:52:25 -040041 android:padding="@dimen/padding_large">
Adrien Béraud91f88742019-09-09 00:46:46 -040042
43 <ImageView
44 android:id="@+id/theme_image"
45 android:layout_width="wrap_content"
46 android:layout_height="wrap_content"
47 android:layout_alignParentStart="true"
48 android:layout_centerVertical="true"
49 android:layout_gravity="start"
50 android:contentDescription="@string/pref_darkTheme_summary"
51 android:src="@drawable/baseline_invert_colors_24"
52 android:layout_marginEnd="32dp"/>
53
Adrien Béraude1826782019-09-29 13:52:25 -040054 <TextView
55 android:id="@+id/theme_title"
56 style="@style/ListPrimary"
57 android:layout_width="match_parent"
Adrien Béraud91f88742019-09-09 00:46:46 -040058 android:layout_height="wrap_content"
Adrien Béraude1826782019-09-29 13:52:25 -040059 android:lines="1"
60 android:text="@string/pref_darkTheme_title"
61 android:layout_toStartOf="@id/settings_dark_theme"
62 android:layout_toEndOf="@id/theme_image" />
63
64 <TextView
65 style="@style/ListSecondary"
66 android:layout_width="match_parent"
67 android:layout_height="wrap_content"
68 android:text="@string/pref_darkTheme_summary"
Adrien Béraud91f88742019-09-09 00:46:46 -040069 android:layout_toStartOf="@id/settings_dark_theme"
70 android:layout_toEndOf="@id/theme_image"
Adrien Béraude1826782019-09-29 13:52:25 -040071 android:layout_below="@id/theme_title" />
Adrien Béraud91f88742019-09-09 00:46:46 -040072
73 <Switch
74 android:id="@+id/settings_dark_theme"
75 android:layout_width="wrap_content"
76 android:layout_height="wrap_content"
77 android:layout_alignParentEnd="true"
78 android:checked="false"
Adrien Béraude1826782019-09-29 13:52:25 -040079 android:layout_marginStart="16dp"
80 android:layout_centerVertical="true"/>
Adrien Béraud91f88742019-09-09 00:46:46 -040081
82 </RelativeLayout>
83
Adrien Béraud693b6882019-01-27 14:51:11 -050084 <!-- Network settings -->
85
Adrien Béraud693b6882019-01-27 14:51:11 -050086 <RelativeLayout
Adrien Béraud4d6c0682019-08-24 21:47:19 -040087 android:id="@+id/settings_video_layout"
Adrien Béraud693b6882019-01-27 14:51:11 -050088 android:layout_width="match_parent"
89 android:layout_height="wrap_content"
Adrien Béraude1826782019-09-29 13:52:25 -040090 android:padding="@dimen/padding_large">
Adrien Béraud693b6882019-01-27 14:51:11 -050091
92 <ImageView
93 android:id="@+id/hwenc_image"
94 android:layout_width="wrap_content"
95 android:layout_height="wrap_content"
96 android:layout_alignParentStart="true"
97 android:layout_centerVertical="true"
Adrien Béraud7ebfee92019-01-27 18:22:24 -050098 android:contentDescription="@string/pref_hwEncode_summary"
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
124 <!-- Contacts settings -->
125
Adrien Béraud91f88742019-09-09 00:46:46 -0400126 <!--
Adrien Béraud693b6882019-01-27 14:51:11 -0500127 <TextView
128 android:layout_width="wrap_content"
129 android:layout_height="wrap_content"
130 android:padding="8dp"
131 android:text="@string/pref_category_contacts"
Adrien Béraud91f88742019-09-09 00:46:46 -0400132 android:textColor="@color/textColorAccent"
133 android:textSize="18sp"
134 android:layout_marginStart="64dp" />
Adrien Béraud693b6882019-01-27 14:51:11 -0500135
136 <RelativeLayout
137 android:layout_width="match_parent"
138 android:layout_height="wrap_content"
Adrien Béraud91f88742019-09-09 00:46:46 -0400139 android:padding="16dp">
Adrien Béraud693b6882019-01-27 14:51:11 -0500140
Adrien Béraud91f88742019-09-09 00:46:46 -0400141 <ImageView
Adrien Béraud693b6882019-01-27 14:51:11 -0500142 android:id="@+id/contacts_image"
143 android:layout_width="wrap_content"
144 android:layout_height="wrap_content"
Adrien Béraud91f88742019-09-09 00:46:46 -0400145 android:contentDescription="@string/pref_systemContacts_summary"
146 app:srcCompat="@drawable/baseline_group_24"
Adrien Béraud693b6882019-01-27 14:51:11 -0500147 android:layout_alignParentStart="true"
Adrien Béraud91f88742019-09-09 00:46:46 -0400148 android:layout_centerVertical="true"
149 android:layout_marginEnd="32dp"/>
Adrien Béraud693b6882019-01-27 14:51:11 -0500150
151 <LinearLayout
152 android:layout_width="wrap_content"
153 android:layout_height="wrap_content"
154 android:layout_centerVertical="true"
155 android:layout_toStartOf="@+id/settings_contacts"
156 android:layout_toEndOf="@+id/contacts_image"
Adrien Béraud91f88742019-09-09 00:46:46 -0400157 android:orientation="vertical">
Adrien Béraud693b6882019-01-27 14:51:11 -0500158
159 <TextView
160 style="@style/ListPrimary"
161 android:layout_width="match_parent"
162 android:layout_height="wrap_content"
163 android:lines="1"
164 android:text="@string/pref_systemContacts_title" />
165
166 <TextView
167 android:layout_width="match_parent"
168 android:layout_height="wrap_content"
169 android:text="@string/pref_systemContacts_summary" />
170
171 </LinearLayout>
172
173 <Switch
174 android:id="@+id/settings_contacts"
175 android:layout_width="wrap_content"
176 android:layout_height="wrap_content"
177 android:layout_alignParentEnd="true"
Adrien Béraud91f88742019-09-09 00:46:46 -0400178 android:checked="false"
179 android:layout_marginStart="16dp" />
Adrien Béraud693b6882019-01-27 14:51:11 -0500180
Adrien Béraud91f88742019-09-09 00:46:46 -0400181 </RelativeLayout>-->
Adrien Béraud693b6882019-01-27 14:51:11 -0500182
183 <!-- System settings -->
184
185 <TextView
186 android:layout_width="wrap_content"
187 android:layout_height="wrap_content"
188 android:padding="8dp"
189 android:text="@string/pref_category_system"
Adrien Béraud91f88742019-09-09 00:46:46 -0400190 android:textColor="@color/textColorAccent"
191 android:textSize="18sp"
192 android:layout_marginStart="64dp" />
193
194 <RelativeLayout
195 android:id="@+id/settings_push_notifications_layout"
196 android:layout_width="match_parent"
197 android:layout_height="wrap_content"
Adrien Béraude1826782019-09-29 13:52:25 -0400198 android:padding="@dimen/padding_large">
Adrien Béraud91f88742019-09-09 00:46:46 -0400199
200 <ImageView
201 android:id="@+id/push_image"
202 android:layout_width="wrap_content"
203 android:layout_height="wrap_content"
204 android:layout_alignParentStart="true"
205 android:layout_centerVertical="true"
Adrien Béraud91f88742019-09-09 00:46:46 -0400206 android:contentDescription="@string/pref_pushNotifications_summary"
207 android:src="@drawable/baseline_notification_important_24"
208 android:layout_marginEnd="32dp"/>
209
210 <LinearLayout
211 android:layout_width="wrap_content"
212 android:layout_height="wrap_content"
213 android:layout_centerVertical="true"
214 android:layout_toStartOf="@id/settings_push_notifications"
215 android:layout_toEndOf="@id/push_image"
216 android:orientation="vertical">
217
218 <TextView
219 style="@style/ListPrimary"
220 android:layout_width="match_parent"
221 android:layout_height="wrap_content"
222 android:lines="1"
223 android:text="@string/pref_pushNotifications_title" />
224
225 <TextView
226 style="@style/ListSecondary"
227 android:layout_width="match_parent"
228 android:layout_height="wrap_content"
229 android:text="@string/pref_pushNotifications_summary" />
230
231 </LinearLayout>
232
233 <Switch
234 android:id="@+id/settings_push_notifications"
235 android:layout_width="wrap_content"
236 android:layout_height="wrap_content"
237 android:layout_alignParentEnd="true"
238 android:checked="false"
Adrien Béraude1826782019-09-29 13:52:25 -0400239 android:layout_marginStart="16dp"
240 android:layout_centerVertical="true"/>
Adrien Béraud91f88742019-09-09 00:46:46 -0400241
242 </RelativeLayout>
Adrien Béraud693b6882019-01-27 14:51:11 -0500243
244 <RelativeLayout
245 android:layout_width="match_parent"
246 android:layout_height="wrap_content"
Adrien Béraude1826782019-09-29 13:52:25 -0400247 android:padding="@dimen/padding_large">
Adrien Béraud693b6882019-01-27 14:51:11 -0500248
Adrien Béraud91f88742019-09-09 00:46:46 -0400249 <ImageView
Adrien Béraud693b6882019-01-27 14:51:11 -0500250 android:id="@+id/system_dialer_image"
251 android:layout_width="wrap_content"
252 android:layout_height="wrap_content"
Adrien Béraud91f88742019-09-09 00:46:46 -0400253 android:contentDescription="@string/pref_systemDialer_summary"
254 app:srcCompat="@drawable/baseline_dialpad_24"
Adrien Béraud693b6882019-01-27 14:51:11 -0500255 android:layout_alignParentStart="true"
Adrien Béraud91f88742019-09-09 00:46:46 -0400256 android:layout_centerVertical="true"
257 android:layout_marginEnd="32dp" />
Adrien Béraud693b6882019-01-27 14:51:11 -0500258
259 <LinearLayout
260 android:layout_width="wrap_content"
261 android:layout_height="wrap_content"
262 android:layout_centerVertical="true"
263 android:layout_toStartOf="@+id/settings_place_call"
264 android:layout_toEndOf="@+id/system_dialer_image"
Adrien Béraud91f88742019-09-09 00:46:46 -0400265 android:orientation="vertical">
Aline Bonnet58357512016-12-14 16:55:50 -0500266
267 <TextView
268 style="@style/ListPrimary"
269 android:layout_width="match_parent"
270 android:layout_height="wrap_content"
Aline Bonnet58357512016-12-14 16:55:50 -0500271 android:ellipsize="end"
Pierre Duchemina5529292017-12-18 17:25:54 -0500272 android:lines="1"
Adrien Béraud693b6882019-01-27 14:51:11 -0500273 android:text="@string/pref_systemDialer_title" />
Aline Bonnet58357512016-12-14 16:55:50 -0500274
275 <TextView
Adrien Béraudc8599a32019-09-26 10:20:39 -0400276 style="@style/ListSecondary"
Aline Bonnet58357512016-12-14 16:55:50 -0500277 android:layout_width="match_parent"
278 android:layout_height="wrap_content"
Adrien Béraud693b6882019-01-27 14:51:11 -0500279 android:text="@string/pref_systemDialer_summary" />
Aline Bonnet58357512016-12-14 16:55:50 -0500280
281 </LinearLayout>
282
Adrien Béraud693b6882019-01-27 14:51:11 -0500283 <Switch
284 android:id="@+id/settings_place_call"
285 android:layout_width="wrap_content"
286 android:layout_height="wrap_content"
287 android:layout_alignParentEnd="true"
Adrien Béraud91f88742019-09-09 00:46:46 -0400288 android:checked="false"
Adrien Béraude1826782019-09-29 13:52:25 -0400289 android:layout_marginStart="16dp"
290 android:layout_centerVertical="true"/>
Adrien Béraud693b6882019-01-27 14:51:11 -0500291
292 </RelativeLayout>
293
294 <RelativeLayout
295 android:layout_width="match_parent"
296 android:layout_height="wrap_content"
Adrien Béraude1826782019-09-29 13:52:25 -0400297 android:padding="@dimen/padding_large">
Adrien Béraud693b6882019-01-27 14:51:11 -0500298
Adrien Béraud91f88742019-09-09 00:46:46 -0400299 <ImageView
Adrien Béraud693b6882019-01-27 14:51:11 -0500300 android:id="@+id/system_startOnBoot_image"
301 android:layout_width="wrap_content"
302 android:layout_height="wrap_content"
Adrien Béraud91f88742019-09-09 00:46:46 -0400303 android:contentDescription="@string/pref_startOnBoot_summary"
304 app:srcCompat="@drawable/baseline_android_24"
Adrien Béraud693b6882019-01-27 14:51:11 -0500305 android:layout_alignParentStart="true"
Adrien Béraud91f88742019-09-09 00:46:46 -0400306 android:layout_centerVertical="true"
307 android:layout_marginEnd="32dp"/>
Adrien Béraud693b6882019-01-27 14:51:11 -0500308
309 <LinearLayout
310 android:layout_width="wrap_content"
311 android:layout_height="wrap_content"
312 android:layout_centerVertical="true"
313 android:layout_toStartOf="@+id/settings_startup"
314 android:layout_toEndOf="@+id/system_startOnBoot_image"
Adrien Béraud91f88742019-09-09 00:46:46 -0400315 android:orientation="vertical">
Adrien Béraud693b6882019-01-27 14:51:11 -0500316
317 <TextView
318 style="@style/ListPrimary"
319 android:layout_width="match_parent"
320 android:layout_height="wrap_content"
321 android:ellipsize="end"
322 android:lines="1"
323 android:text="@string/pref_startOnBoot_title" />
324
325 <TextView
Adrien Béraudc8599a32019-09-26 10:20:39 -0400326 style="@style/ListSecondary"
Adrien Béraud693b6882019-01-27 14:51:11 -0500327 android:layout_width="match_parent"
328 android:layout_height="wrap_content"
329 android:text="@string/pref_startOnBoot_summary" />
330
331 </LinearLayout>
332
333 <Switch
334 android:id="@+id/settings_startup"
335 android:layout_width="wrap_content"
336 android:layout_height="wrap_content"
337 android:layout_alignParentEnd="true"
Adrien Béraud91f88742019-09-09 00:46:46 -0400338 android:checked="false"
Adrien Béraude1826782019-09-29 13:52:25 -0400339 android:layout_marginStart="16dp"
340 android:layout_centerVertical="true"/>
Adrien Béraud693b6882019-01-27 14:51:11 -0500341
342 </RelativeLayout>
343
344 <!-- Privacy -->
345
346 <RelativeLayout
347 android:layout_width="match_parent"
348 android:layout_height="match_parent"
Adrien Béraude1826782019-09-29 13:52:25 -0400349 android:padding="@dimen/padding_large">
Adrien Béraud693b6882019-01-27 14:51:11 -0500350
Adrien Béraud91f88742019-09-09 00:46:46 -0400351 <ImageView
Adrien Béraud693b6882019-01-27 14:51:11 -0500352 android:id="@+id/system_persistNotification_image"
353 android:layout_width="wrap_content"
354 android:layout_height="wrap_content"
Adrien Béraud91f88742019-09-09 00:46:46 -0400355 android:contentDescription="@string/pref_persistNotification_summary"
356 android:src="@drawable/baseline_dns_24"
Adrien Béraud693b6882019-01-27 14:51:11 -0500357 android:layout_alignParentStart="true"
Adrien Béraud91f88742019-09-09 00:46:46 -0400358 android:layout_centerVertical="true"
359 android:layout_marginEnd="32dp"/>
Adrien Béraud693b6882019-01-27 14:51:11 -0500360
361 <LinearLayout
362 android:layout_width="wrap_content"
363 android:layout_height="wrap_content"
364 android:layout_centerVertical="true"
365 android:layout_toStartOf="@+id/settings_persistNotification"
366 android:layout_toEndOf="@+id/system_persistNotification_image"
Adrien Béraud91f88742019-09-09 00:46:46 -0400367 android:orientation="vertical">
Adrien Béraud693b6882019-01-27 14:51:11 -0500368
369 <TextView
370 style="@style/ListPrimary"
371 android:layout_width="match_parent"
372 android:layout_height="wrap_content"
373 android:ellipsize="end"
374 android:lines="1"
375 android:text="@string/pref_persistNotification_title" />
376
377 <TextView
Adrien Béraudc8599a32019-09-26 10:20:39 -0400378 style="@style/ListSecondary"
Adrien Béraud693b6882019-01-27 14:51:11 -0500379 android:layout_width="match_parent"
380 android:layout_height="wrap_content"
381 android:text="@string/pref_persistNotification_summary" />
382
383 </LinearLayout>
384
385 <Switch
386 android:id="@+id/settings_persistNotification"
387 android:layout_width="wrap_content"
388 android:layout_height="wrap_content"
389 android:layout_alignParentEnd="true"
Adrien Béraud91f88742019-09-09 00:46:46 -0400390 android:checked="false"
Adrien Béraude1826782019-09-29 13:52:25 -0400391 android:layout_marginStart="16dp"
392 android:layout_centerVertical="true"/>
Adrien Béraud693b6882019-01-27 14:51:11 -0500393
394 </RelativeLayout>
395
396 <TextView
397 android:layout_width="wrap_content"
398 android:layout_height="wrap_content"
399 android:padding="8dp"
Adrien Béraud91f88742019-09-09 00:46:46 -0400400 android:layout_marginStart="64dp"
Adrien Béraud693b6882019-01-27 14:51:11 -0500401 android:text="@string/pref_category_privacy"
Adrien Béraud91f88742019-09-09 00:46:46 -0400402 android:textColor="@color/textColorAccent"
Adrien Béraud693b6882019-01-27 14:51:11 -0500403 android:textSize="18sp" />
404
Adrien Béraud91f88742019-09-09 00:46:46 -0400405 <RelativeLayout
Adrien Béraud693b6882019-01-27 14:51:11 -0500406 android:id="@+id/settings_clear_history"
407 android:layout_width="match_parent"
Adrien Béraud91f88742019-09-09 00:46:46 -0400408 android:layout_height="match_parent"
Adrien Béraud693b6882019-01-27 14:51:11 -0500409 android:background="?attr/selectableItemBackground"
Adrien Béraude1826782019-09-29 13:52:25 -0400410 android:padding="@dimen/padding_large">
Adrien Béraud91f88742019-09-09 00:46:46 -0400411
412 <ImageView
413 android:id="@+id/system_clear_history_image"
414 android:layout_width="wrap_content"
415 android:layout_height="wrap_content"
416 android:layout_gravity="start"
417 android:contentDescription="@string/pref_clearHistory_summary"
418 android:src="@drawable/baseline_clear_all_24"
419 android:layout_alignParentStart="true"
420 android:layout_centerVertical="true"
421 android:layout_marginEnd="32dp" />
Adrien Béraud693b6882019-01-27 14:51:11 -0500422
423 <TextView
424 style="@style/ListPrimary"
Adrien Béraud91f88742019-09-09 00:46:46 -0400425 android:id="@+id/system_clear_history_title"
Adrien Béraud693b6882019-01-27 14:51:11 -0500426 android:layout_width="match_parent"
427 android:layout_height="wrap_content"
428 android:ellipsize="end"
429 android:lines="1"
Adrien Béraud91f88742019-09-09 00:46:46 -0400430 android:text="@string/pref_clearHistory_title"
431 android:layout_toEndOf="@+id/system_clear_history_image"/>
Adrien Béraud693b6882019-01-27 14:51:11 -0500432
433 <TextView
Adrien Béraudc8599a32019-09-26 10:20:39 -0400434 style="@style/ListSecondary"
Adrien Béraud693b6882019-01-27 14:51:11 -0500435 android:layout_width="match_parent"
436 android:layout_height="wrap_content"
Adrien Béraud91f88742019-09-09 00:46:46 -0400437 android:text="@string/pref_clearHistory_summary"
438 android:layout_toEndOf="@+id/system_clear_history_image"
439 android:layout_below="@id/system_clear_history_title"/>
Adrien Béraud693b6882019-01-27 14:51:11 -0500440
Adrien Béraud91f88742019-09-09 00:46:46 -0400441 </RelativeLayout>
Adrien Béraud693b6882019-01-27 14:51:11 -0500442
443 </LinearLayout>
444 </cx.ring.views.BoundedScrollView>
445</RelativeLayout>