blob: edac7fbb8224a113255d866e0f4aa254c4263756 [file] [log] [blame]
Thibault Wittemberg77cf6002016-11-09 16:53:31 -05001<?xml version="1.0" encoding="utf-8"?><!-- Copyright (c) 2016 Savoir-faire Linux Inc.
2
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-->
19
20<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
Aline Bonnet58357512016-12-14 16:55:50 -050021 xmlns:app="http://schemas.android.com/apk/res-auto"
Thibault Wittemberg77cf6002016-11-09 16:53:31 -050022 android:layout_width="match_parent"
23 android:layout_height="match_parent">
24
Aline Bonnet58357512016-12-14 16:55:50 -050025 <RelativeLayout
Thibault Wittemberg77cf6002016-11-09 16:53:31 -050026 android:layout_width="match_parent"
Aline Bonnet58357512016-12-14 16:55:50 -050027 android:layout_height="wrap_content">
Thibault Wittemberg77cf6002016-11-09 16:53:31 -050028
Aline Bonnet58357512016-12-14 16:55:50 -050029 <cx.ring.views.BoundedScrollView
Thibault Wittemberg77cf6002016-11-09 16:53:31 -050030 android:layout_width="match_parent"
31 android:layout_height="wrap_content"
Aline Bonnet58357512016-12-14 16:55:50 -050032 android:layout_centerInParent="true"
33 app:bounded_width="600dp">
Thibault Wittemberg77cf6002016-11-09 16:53:31 -050034
Adrien Béraud2693eca2018-01-24 16:38:48 -050035 <LinearLayout
Thibault Wittemberg77cf6002016-11-09 16:53:31 -050036 android:layout_width="match_parent"
37 android:layout_height="wrap_content"
Aline Bonnet58357512016-12-14 16:55:50 -050038 android:orientation="vertical"
Adrien Béraud954d7a52018-03-02 12:06:34 -050039 android:padding="@dimen/padding_small">
Thibault Wittemberg77cf6002016-11-09 16:53:31 -050040
Aline Bonnet58357512016-12-14 16:55:50 -050041 <!-- Network settings -->
Thibault Wittemberg77cf6002016-11-09 16:53:31 -050042
Aline Bonnet58357512016-12-14 16:55:50 -050043 <TextView
44 android:layout_width="wrap_content"
45 android:layout_height="wrap_content"
46 android:padding="8dp"
47 android:text="@string/pref_category_network"
48 android:textColor="@color/color_primary_dark"
49 android:textSize="18sp" />
Thibault Wittemberg77cf6002016-11-09 16:53:31 -050050
Aline Bonnet58357512016-12-14 16:55:50 -050051 <RelativeLayout
52 android:layout_width="match_parent"
53 android:layout_height="wrap_content"
54 android:orientation="horizontal"
55 android:padding="8dp">
56
Adrien Béraud2693eca2018-01-24 16:38:48 -050057
58 <ImageView
Aline Bonnet58357512016-12-14 16:55:50 -050059 android:id="@+id/network_image"
60 android:layout_width="wrap_content"
61 android:layout_height="wrap_content"
Pierre Duchemina5529292017-12-18 17:25:54 -050062 android:layout_alignParentStart="true"
Adrien Béraud2693eca2018-01-24 16:38:48 -050063 android:layout_centerVertical="true"
64 android:layout_gravity="start"
65 android:contentDescription="@string/pref_mobileData_summary"
Pierre Duchemin932b96d2018-05-10 09:36:52 -040066 app:srcCompat="@drawable/baseline_perm_data_setting_24px" />
Aline Bonnet58357512016-12-14 16:55:50 -050067
Aline Bonnet58357512016-12-14 16:55:50 -050068
69 <LinearLayout
70 android:layout_width="wrap_content"
71 android:layout_height="wrap_content"
Aline Bonnet58357512016-12-14 16:55:50 -050072 android:layout_centerVertical="true"
Pierre Duchemina5529292017-12-18 17:25:54 -050073 android:layout_toStartOf="@+id/settings_mobile_data"
Adrien Béraud746de672018-09-18 01:18:23 -040074 android:layout_toEndOf="@+id/network_image"
Pierre Duchemina5529292017-12-18 17:25:54 -050075 android:orientation="vertical"
Aline Bonnet58357512016-12-14 16:55:50 -050076 android:paddingLeft="16dp"
Pierre Duchemina5529292017-12-18 17:25:54 -050077 android:paddingRight="16dp">
Aline Bonnet58357512016-12-14 16:55:50 -050078
79 <TextView
80 style="@style/ListPrimary"
81 android:layout_width="match_parent"
82 android:layout_height="wrap_content"
83 android:lines="1"
84 android:text="@string/pref_mobileData_title" />
85
86 <TextView
87 android:layout_width="match_parent"
88 android:layout_height="wrap_content"
89 android:text="@string/pref_mobileData_summary" />
90
91 </LinearLayout>
92
93 <Switch
94 android:id="@+id/settings_mobile_data"
95 android:layout_width="wrap_content"
96 android:layout_height="wrap_content"
Aline Bonnet58357512016-12-14 16:55:50 -050097 android:layout_alignParentEnd="true"
98 android:checked="false" />
99
100 </RelativeLayout>
101
Adrien Béraud2693eca2018-01-24 16:38:48 -0500102
103 <RelativeLayout
Adrien Béraud746de672018-09-18 01:18:23 -0400104 android:id="@+id/settings_push_notifications_layout"
Adrien Béraud2693eca2018-01-24 16:38:48 -0500105 android:layout_width="match_parent"
106 android:layout_height="wrap_content"
107 android:orientation="horizontal"
Adrien Béraud746de672018-09-18 01:18:23 -0400108 android:padding="8dp">
Adrien Béraud2693eca2018-01-24 16:38:48 -0500109
110 <ImageView
111 android:id="@+id/push_image"
112 android:layout_width="wrap_content"
113 android:layout_height="wrap_content"
114 android:layout_alignParentStart="true"
115 android:layout_centerVertical="true"
116 android:layout_gravity="start"
117 android:contentDescription="@string/pref_pushNotifications_summary"
118 app:srcCompat="@drawable/ic_priority_high_black_24dp" />
119
120 <LinearLayout
121 android:layout_width="wrap_content"
122 android:layout_height="wrap_content"
123 android:layout_centerVertical="true"
Adrien Béraud2693eca2018-01-24 16:38:48 -0500124 android:layout_toStartOf="@+id/settings_push_notifications"
Adrien Béraud746de672018-09-18 01:18:23 -0400125 android:layout_toEndOf="@+id/push_image"
Adrien Béraud2693eca2018-01-24 16:38:48 -0500126 android:orientation="vertical"
127 android:paddingLeft="16dp"
128 android:paddingRight="16dp">
129
130 <TextView
131 style="@style/ListPrimary"
132 android:layout_width="match_parent"
133 android:layout_height="wrap_content"
134 android:lines="1"
135 android:text="@string/pref_pushNotifications_title" />
136
137 <TextView
138 android:layout_width="match_parent"
139 android:layout_height="wrap_content"
140 android:text="@string/pref_pushNotifications_summary" />
141
142 </LinearLayout>
143
144 <Switch
145 android:id="@+id/settings_push_notifications"
146 android:layout_width="wrap_content"
147 android:layout_height="wrap_content"
148 android:layout_alignParentEnd="true"
149 android:checked="false" />
150
151 </RelativeLayout>
152
153
Adrien Béraud1e848752018-08-26 15:30:43 -0400154 <RelativeLayout
Adrien Béraud746de672018-09-18 01:18:23 -0400155 android:id="@+id/settings_hd_layout"
Adrien Béraud1e848752018-08-26 15:30:43 -0400156 android:layout_width="match_parent"
157 android:layout_height="wrap_content"
158 android:orientation="horizontal"
Adrien Béraud746de672018-09-18 01:18:23 -0400159 android:padding="8dp">
Adrien Béraud1e848752018-08-26 15:30:43 -0400160
161 <ImageView
162 android:id="@+id/hd_image"
163 android:layout_width="wrap_content"
164 android:layout_height="wrap_content"
165 android:layout_alignParentStart="true"
166 android:layout_centerVertical="true"
167 android:layout_gravity="start"
168 android:contentDescription="@string/pref_hd_summary"
Adrien Béraud746de672018-09-18 01:18:23 -0400169 android:tint="@color/black"
170 app:srcCompat="@drawable/ic_videocam_white" />
Adrien Béraud1e848752018-08-26 15:30:43 -0400171
172
173 <LinearLayout
174 android:layout_width="wrap_content"
175 android:layout_height="wrap_content"
176 android:layout_centerVertical="true"
Adrien Béraud1e848752018-08-26 15:30:43 -0400177 android:layout_toStartOf="@+id/settings_hd"
Adrien Béraud746de672018-09-18 01:18:23 -0400178 android:layout_toEndOf="@+id/hd_image"
Adrien Béraud1e848752018-08-26 15:30:43 -0400179 android:orientation="horizontal"
180 android:paddingLeft="16dp"
181 android:paddingRight="16dp">
182
183 <TextView
184 style="@style/ListPrimary"
185 android:layout_width="0dp"
186 android:layout_height="wrap_content"
187 android:layout_weight="1"
188 android:maxLines="3"
189 android:singleLine="false"
190 android:text="@string/pref_hd_summary" />
191
192 <TextView
193 android:layout_width="wrap_content"
194 android:layout_height="wrap_content"
195 android:layout_gravity="start"
Adrien Béraud746de672018-09-18 01:18:23 -0400196 android:layout_margin="4dp"
Adrien Béraud1e848752018-08-26 15:30:43 -0400197 android:background="@drawable/hd_button_background"
Adrien Béraud746de672018-09-18 01:18:23 -0400198 android:paddingStart="8dp"
Adrien Béraud1e848752018-08-26 15:30:43 -0400199 android:paddingTop="3dp"
Adrien Béraud746de672018-09-18 01:18:23 -0400200 android:paddingEnd="8dp"
Adrien Béraud1e848752018-08-26 15:30:43 -0400201 android:paddingBottom="4dp"
Adrien Béraud746de672018-09-18 01:18:23 -0400202 android:text="@string/label_hd_720p"
Adrien Béraud1e848752018-08-26 15:30:43 -0400203 android:textColor="@color/amber_A400"
Adrien Béraud746de672018-09-18 01:18:23 -0400204 android:textSize="14sp"
205 android:textStyle="bold" />
Adrien Béraud1e848752018-08-26 15:30:43 -0400206 </LinearLayout>
207
208 <Switch
209 android:id="@+id/settings_hd"
210 android:layout_width="wrap_content"
211 android:layout_height="wrap_content"
212 android:layout_alignParentEnd="true"
213 android:checked="false" />
214
215 </RelativeLayout>
216
Aline Bonnet58357512016-12-14 16:55:50 -0500217 <!-- Contacts settings -->
218
219 <TextView
220 android:layout_width="wrap_content"
221 android:layout_height="wrap_content"
222 android:padding="8dp"
223 android:text="@string/pref_category_contacts"
224 android:textColor="@color/color_primary_dark"
225 android:textSize="18sp" />
226
227 <RelativeLayout
228 android:layout_width="match_parent"
229 android:layout_height="wrap_content"
230 android:orientation="horizontal"
231 android:padding="8dp"
232 android:weightSum="1">
233
234 <LinearLayout
235 android:id="@+id/contacts_image"
236 android:layout_width="wrap_content"
237 android:layout_height="wrap_content"
Pierre Duchemina5529292017-12-18 17:25:54 -0500238 android:layout_alignParentStart="true"
239 android:layout_centerVertical="true">
Aline Bonnet58357512016-12-14 16:55:50 -0500240
241 <ImageView
242 android:layout_width="wrap_content"
243 android:layout_height="wrap_content"
244 android:layout_gravity="start"
Pierre Duchemina5529292017-12-18 17:25:54 -0500245 android:contentDescription="@string/pref_systemContacts_summary"
246 app:srcCompat="@drawable/ic_group_black" />
Aline Bonnet58357512016-12-14 16:55:50 -0500247
248 </LinearLayout>
249
250 <LinearLayout
251 android:layout_width="wrap_content"
252 android:layout_height="wrap_content"
Aline Bonnet58357512016-12-14 16:55:50 -0500253 android:layout_centerVertical="true"
Pierre Duchemina5529292017-12-18 17:25:54 -0500254 android:layout_toStartOf="@+id/settings_contacts"
Adrien Béraud746de672018-09-18 01:18:23 -0400255 android:layout_toEndOf="@+id/contacts_image"
Pierre Duchemina5529292017-12-18 17:25:54 -0500256 android:orientation="vertical"
Aline Bonnet58357512016-12-14 16:55:50 -0500257 android:paddingLeft="16dp"
Pierre Duchemina5529292017-12-18 17:25:54 -0500258 android:paddingRight="16dp">
Aline Bonnet58357512016-12-14 16:55:50 -0500259
260 <TextView
261 style="@style/ListPrimary"
262 android:layout_width="match_parent"
263 android:layout_height="wrap_content"
264 android:lines="1"
265 android:text="@string/pref_systemContacts_title" />
266
267 <TextView
268 android:layout_width="match_parent"
269 android:layout_height="wrap_content"
270 android:text="@string/pref_systemContacts_summary" />
271
272 </LinearLayout>
273
274 <Switch
275 android:id="@+id/settings_contacts"
276 android:layout_width="wrap_content"
277 android:layout_height="wrap_content"
Aline Bonnet58357512016-12-14 16:55:50 -0500278 android:layout_alignParentEnd="true"
279 android:checked="false" />
280
281 </RelativeLayout>
282
283 <!-- System settings -->
284
285 <TextView
286 android:layout_width="wrap_content"
287 android:layout_height="wrap_content"
288 android:padding="8dp"
289 android:text="@string/pref_category_system"
290 android:textColor="@color/color_primary_dark"
291 android:textSize="18sp" />
292
293 <RelativeLayout
294 android:layout_width="match_parent"
295 android:layout_height="wrap_content"
296 android:orientation="horizontal"
297 android:padding="8dp"
298 android:weightSum="1">
299
300 <LinearLayout
301 android:id="@+id/system_dialer_image"
302 android:layout_width="wrap_content"
303 android:layout_height="wrap_content"
Pierre Duchemina5529292017-12-18 17:25:54 -0500304 android:layout_alignParentStart="true"
305 android:layout_centerVertical="true">
Aline Bonnet58357512016-12-14 16:55:50 -0500306
307 <ImageView
308 android:layout_width="wrap_content"
309 android:layout_height="wrap_content"
310 android:layout_gravity="start"
Pierre Duchemina5529292017-12-18 17:25:54 -0500311 android:contentDescription="@string/pref_systemDialer_summary"
312 app:srcCompat="@drawable/ic_dialpad_black" />
Aline Bonnet58357512016-12-14 16:55:50 -0500313
314 </LinearLayout>
315
316 <LinearLayout
317 android:layout_width="wrap_content"
318 android:layout_height="wrap_content"
Aline Bonnet58357512016-12-14 16:55:50 -0500319 android:layout_centerVertical="true"
Pierre Duchemina5529292017-12-18 17:25:54 -0500320 android:layout_toStartOf="@+id/settings_place_call"
Adrien Béraud746de672018-09-18 01:18:23 -0400321 android:layout_toEndOf="@+id/system_dialer_image"
Pierre Duchemina5529292017-12-18 17:25:54 -0500322 android:orientation="vertical"
Aline Bonnet58357512016-12-14 16:55:50 -0500323 android:paddingLeft="16dp"
Pierre Duchemina5529292017-12-18 17:25:54 -0500324 android:paddingRight="16dp">
Aline Bonnet58357512016-12-14 16:55:50 -0500325
326 <TextView
327 style="@style/ListPrimary"
328 android:layout_width="match_parent"
329 android:layout_height="wrap_content"
Aline Bonnet58357512016-12-14 16:55:50 -0500330 android:ellipsize="end"
Pierre Duchemina5529292017-12-18 17:25:54 -0500331 android:lines="1"
Aline Bonnet58357512016-12-14 16:55:50 -0500332 android:text="@string/pref_systemDialer_title" />
333
334 <TextView
335 android:layout_width="match_parent"
336 android:layout_height="wrap_content"
337 android:text="@string/pref_systemDialer_summary" />
338
339 </LinearLayout>
340
341 <Switch
342 android:id="@+id/settings_place_call"
343 android:layout_width="wrap_content"
344 android:layout_height="wrap_content"
Aline Bonnet58357512016-12-14 16:55:50 -0500345 android:layout_alignParentEnd="true"
346 android:checked="false" />
347
348 </RelativeLayout>
349
350 <RelativeLayout
351 android:layout_width="match_parent"
352 android:layout_height="wrap_content"
353 android:orientation="horizontal"
354 android:padding="8dp"
355 android:weightSum="1">
356
357 <LinearLayout
358 android:id="@+id/system_startOnBoot_image"
359 android:layout_width="wrap_content"
360 android:layout_height="wrap_content"
Pierre Duchemina5529292017-12-18 17:25:54 -0500361 android:layout_alignParentStart="true"
362 android:layout_centerVertical="true">
Aline Bonnet58357512016-12-14 16:55:50 -0500363
364
Pierre Duchemina5529292017-12-18 17:25:54 -0500365 <ImageView
Aline Bonnet58357512016-12-14 16:55:50 -0500366 android:layout_width="wrap_content"
367 android:layout_height="wrap_content"
368 android:layout_gravity="start"
Pierre Duchemina5529292017-12-18 17:25:54 -0500369 android:contentDescription="@string/pref_startOnBoot_summary"
370 app:srcCompat="@drawable/ic_android_black" />
Aline Bonnet58357512016-12-14 16:55:50 -0500371
372 </LinearLayout>
373
374 <LinearLayout
375 android:layout_width="wrap_content"
376 android:layout_height="wrap_content"
Aline Bonnet58357512016-12-14 16:55:50 -0500377 android:layout_centerVertical="true"
Pierre Duchemina5529292017-12-18 17:25:54 -0500378 android:layout_toStartOf="@+id/settings_startup"
Adrien Béraud746de672018-09-18 01:18:23 -0400379 android:layout_toEndOf="@+id/system_startOnBoot_image"
Pierre Duchemina5529292017-12-18 17:25:54 -0500380 android:orientation="vertical"
Aline Bonnet58357512016-12-14 16:55:50 -0500381 android:paddingLeft="16dp"
Pierre Duchemina5529292017-12-18 17:25:54 -0500382 android:paddingRight="16dp">
Aline Bonnet58357512016-12-14 16:55:50 -0500383
384 <TextView
385 style="@style/ListPrimary"
386 android:layout_width="match_parent"
387 android:layout_height="wrap_content"
Aline Bonnet58357512016-12-14 16:55:50 -0500388 android:ellipsize="end"
Pierre Duchemina5529292017-12-18 17:25:54 -0500389 android:lines="1"
Aline Bonnet58357512016-12-14 16:55:50 -0500390 android:text="@string/pref_startOnBoot_title" />
391
392 <TextView
393 android:layout_width="match_parent"
394 android:layout_height="wrap_content"
395 android:text="@string/pref_startOnBoot_summary" />
396
397 </LinearLayout>
398
399 <Switch
400 android:id="@+id/settings_startup"
401 android:layout_width="wrap_content"
402 android:layout_height="wrap_content"
Aline Bonnet58357512016-12-14 16:55:50 -0500403 android:layout_alignParentEnd="true"
404 android:checked="false" />
405
406 </RelativeLayout>
407
408 <!-- Privacy -->
409
410 <TextView
411 android:layout_width="wrap_content"
412 android:layout_height="wrap_content"
413 android:padding="8dp"
414 android:text="@string/pref_category_privacy"
415 android:textColor="@color/color_primary_dark"
416 android:textSize="18sp" />
417
418 <LinearLayout
419 android:id="@+id/settings_clear_history"
420 android:layout_width="match_parent"
421 android:layout_height="wrap_content"
422 android:background="?attr/selectableItemBackground"
Pierre Duchemina5529292017-12-18 17:25:54 -0500423 android:orientation="vertical"
424 android:padding="8dp">
Aline Bonnet58357512016-12-14 16:55:50 -0500425
426 <TextView
427 style="@style/ListPrimary"
428 android:layout_width="match_parent"
429 android:layout_height="wrap_content"
Aline Bonnet58357512016-12-14 16:55:50 -0500430 android:ellipsize="end"
Pierre Duchemina5529292017-12-18 17:25:54 -0500431 android:lines="1"
Aline Bonnet58357512016-12-14 16:55:50 -0500432 android:text="@string/pref_clearHistory_title" />
433
434 <TextView
435 android:layout_width="match_parent"
436 android:layout_height="wrap_content"
437 android:text="@string/pref_clearHistory_summary" />
438
439 </LinearLayout>
440
441 </LinearLayout>
442 </cx.ring.views.BoundedScrollView>
443 </RelativeLayout>
Thibault Wittemberg77cf6002016-11-09 16:53:31 -0500444</ScrollView>