blob: 270a9c2b415a00e0ebdc894a9bcac79dbaa838a7 [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>
4
5This program is free software; you can redistribute it and/or modify
6it under the terms of the GNU General Public License as published by
7the Free Software Foundation; either version 3 of the License, or
8(at your option) any later version.
9
10This program is distributed in the hope that it will be useful,
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with this program. If not, see <http://www.gnu.org/licenses/>.
17-->
18
19<ScrollView 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
Aline Bonnet58357512016-12-14 16:55:50 -050024 <RelativeLayout
Thibault Wittemberg77cf6002016-11-09 16:53:31 -050025 android:layout_width="match_parent"
Aline Bonnet58357512016-12-14 16:55:50 -050026 android:layout_height="wrap_content">
Thibault Wittemberg77cf6002016-11-09 16:53:31 -050027
Aline Bonnet58357512016-12-14 16:55:50 -050028 <cx.ring.views.BoundedScrollView
Thibault Wittemberg77cf6002016-11-09 16:53:31 -050029 android:layout_width="match_parent"
30 android:layout_height="wrap_content"
Aline Bonnet58357512016-12-14 16:55:50 -050031 android:layout_centerInParent="true"
32 app:bounded_width="600dp">
Thibault Wittemberg77cf6002016-11-09 16:53:31 -050033
Adrien Béraud2693eca2018-01-24 16:38:48 -050034 <LinearLayout
Thibault Wittemberg77cf6002016-11-09 16:53:31 -050035 android:layout_width="match_parent"
36 android:layout_height="wrap_content"
Aline Bonnet58357512016-12-14 16:55:50 -050037 android:orientation="vertical"
Adrien Béraud954d7a52018-03-02 12:06:34 -050038 android:padding="@dimen/padding_small">
Thibault Wittemberg77cf6002016-11-09 16:53:31 -050039
Aline Bonnet58357512016-12-14 16:55:50 -050040 <!-- Network settings -->
Thibault Wittemberg77cf6002016-11-09 16:53:31 -050041
Aline Bonnet58357512016-12-14 16:55:50 -050042 <TextView
43 android:layout_width="wrap_content"
44 android:layout_height="wrap_content"
45 android:padding="8dp"
46 android:text="@string/pref_category_network"
47 android:textColor="@color/color_primary_dark"
48 android:textSize="18sp" />
Thibault Wittemberg77cf6002016-11-09 16:53:31 -050049
Aline Bonnet58357512016-12-14 16:55:50 -050050 <RelativeLayout
51 android:layout_width="match_parent"
52 android:layout_height="wrap_content"
53 android:orientation="horizontal"
54 android:padding="8dp">
55
Adrien Béraud2693eca2018-01-24 16:38:48 -050056
57 <ImageView
Aline Bonnet58357512016-12-14 16:55:50 -050058 android:id="@+id/network_image"
59 android:layout_width="wrap_content"
60 android:layout_height="wrap_content"
Pierre Duchemina5529292017-12-18 17:25:54 -050061 android:layout_alignParentStart="true"
Adrien Béraud2693eca2018-01-24 16:38:48 -050062 android:layout_centerVertical="true"
63 android:layout_gravity="start"
64 android:contentDescription="@string/pref_mobileData_summary"
Pierre Duchemin932b96d2018-05-10 09:36:52 -040065 app:srcCompat="@drawable/baseline_perm_data_setting_24px" />
Aline Bonnet58357512016-12-14 16:55:50 -050066
Aline Bonnet58357512016-12-14 16:55:50 -050067
68 <LinearLayout
69 android:layout_width="wrap_content"
70 android:layout_height="wrap_content"
Aline Bonnet58357512016-12-14 16:55:50 -050071 android:layout_centerVertical="true"
Pierre Duchemina5529292017-12-18 17:25:54 -050072 android:layout_toEndOf="@+id/network_image"
73 android:layout_toStartOf="@+id/settings_mobile_data"
74 android:orientation="vertical"
Aline Bonnet58357512016-12-14 16:55:50 -050075 android:paddingLeft="16dp"
Pierre Duchemina5529292017-12-18 17:25:54 -050076 android:paddingRight="16dp">
Aline Bonnet58357512016-12-14 16:55:50 -050077
78 <TextView
79 style="@style/ListPrimary"
80 android:layout_width="match_parent"
81 android:layout_height="wrap_content"
82 android:lines="1"
83 android:text="@string/pref_mobileData_title" />
84
85 <TextView
86 android:layout_width="match_parent"
87 android:layout_height="wrap_content"
88 android:text="@string/pref_mobileData_summary" />
89
90 </LinearLayout>
91
92 <Switch
93 android:id="@+id/settings_mobile_data"
94 android:layout_width="wrap_content"
95 android:layout_height="wrap_content"
Aline Bonnet58357512016-12-14 16:55:50 -050096 android:layout_alignParentEnd="true"
97 android:checked="false" />
98
99 </RelativeLayout>
100
Adrien Béraud2693eca2018-01-24 16:38:48 -0500101
102 <RelativeLayout
103 android:layout_width="match_parent"
104 android:layout_height="wrap_content"
105 android:orientation="horizontal"
Adrien Béraud6fd9e692018-05-16 17:03:04 -0400106 android:padding="8dp"
107 android:id="@+id/settings_push_notifications_layout">
Adrien Béraud2693eca2018-01-24 16:38:48 -0500108
109 <ImageView
110 android:id="@+id/push_image"
111 android:layout_width="wrap_content"
112 android:layout_height="wrap_content"
113 android:layout_alignParentStart="true"
114 android:layout_centerVertical="true"
115 android:layout_gravity="start"
116 android:contentDescription="@string/pref_pushNotifications_summary"
117 app:srcCompat="@drawable/ic_priority_high_black_24dp" />
118
119 <LinearLayout
120 android:layout_width="wrap_content"
121 android:layout_height="wrap_content"
122 android:layout_centerVertical="true"
123 android:layout_toEndOf="@+id/push_image"
124 android:layout_toStartOf="@+id/settings_push_notifications"
125 android:orientation="vertical"
126 android:paddingLeft="16dp"
127 android:paddingRight="16dp">
128
129 <TextView
130 style="@style/ListPrimary"
131 android:layout_width="match_parent"
132 android:layout_height="wrap_content"
133 android:lines="1"
134 android:text="@string/pref_pushNotifications_title" />
135
136 <TextView
137 android:layout_width="match_parent"
138 android:layout_height="wrap_content"
139 android:text="@string/pref_pushNotifications_summary" />
140
141 </LinearLayout>
142
143 <Switch
144 android:id="@+id/settings_push_notifications"
145 android:layout_width="wrap_content"
146 android:layout_height="wrap_content"
147 android:layout_alignParentEnd="true"
148 android:checked="false" />
149
150 </RelativeLayout>
151
152
Adrien Béraud1e848752018-08-26 15:30:43 -0400153 <RelativeLayout
154 android:layout_width="match_parent"
155 android:layout_height="wrap_content"
156 android:orientation="horizontal"
157 android:padding="8dp"
158 android:id="@+id/settings_hd_layout">
159
160 <ImageView
161 android:id="@+id/hd_image"
162 android:layout_width="wrap_content"
163 android:layout_height="wrap_content"
164 android:layout_alignParentStart="true"
165 android:layout_centerVertical="true"
166 android:layout_gravity="start"
167 android:contentDescription="@string/pref_hd_summary"
168 app:srcCompat="@drawable/ic_videocam_white"
169 android:tint="@color/black"/>
170
171
172 <LinearLayout
173 android:layout_width="wrap_content"
174 android:layout_height="wrap_content"
175 android:layout_centerVertical="true"
176 android:layout_toEndOf="@+id/hd_image"
177 android:layout_toStartOf="@+id/settings_hd"
178 android:orientation="horizontal"
179 android:paddingLeft="16dp"
180 android:paddingRight="16dp">
181
182 <TextView
183 style="@style/ListPrimary"
184 android:layout_width="0dp"
185 android:layout_height="wrap_content"
186 android:layout_weight="1"
187 android:maxLines="3"
188 android:singleLine="false"
189 android:text="@string/pref_hd_summary" />
190
191 <TextView
192 android:layout_width="wrap_content"
193 android:layout_height="wrap_content"
194 android:layout_gravity="start"
195 android:background="@drawable/hd_button_background"
196 android:text="@string/label_hd_720p"
197 android:textSize="14sp"
198 android:textStyle="bold"
199 android:paddingTop="3dp"
200 android:paddingBottom="4dp"
201 android:paddingStart="10dp"
202 android:paddingEnd="10dp"
203 android:textColor="@color/amber_A400"
204 android:layout_margin="4dp"/>
205 </LinearLayout>
206
207 <Switch
208 android:id="@+id/settings_hd"
209 android:layout_width="wrap_content"
210 android:layout_height="wrap_content"
211 android:layout_alignParentEnd="true"
212 android:checked="false" />
213
214 </RelativeLayout>
215
Aline Bonnet58357512016-12-14 16:55:50 -0500216 <!-- Contacts settings -->
217
218 <TextView
219 android:layout_width="wrap_content"
220 android:layout_height="wrap_content"
221 android:padding="8dp"
222 android:text="@string/pref_category_contacts"
223 android:textColor="@color/color_primary_dark"
224 android:textSize="18sp" />
225
226 <RelativeLayout
227 android:layout_width="match_parent"
228 android:layout_height="wrap_content"
229 android:orientation="horizontal"
230 android:padding="8dp"
231 android:weightSum="1">
232
233 <LinearLayout
234 android:id="@+id/contacts_image"
235 android:layout_width="wrap_content"
236 android:layout_height="wrap_content"
Pierre Duchemina5529292017-12-18 17:25:54 -0500237 android:layout_alignParentStart="true"
238 android:layout_centerVertical="true">
Aline Bonnet58357512016-12-14 16:55:50 -0500239
240 <ImageView
241 android:layout_width="wrap_content"
242 android:layout_height="wrap_content"
243 android:layout_gravity="start"
Pierre Duchemina5529292017-12-18 17:25:54 -0500244 android:contentDescription="@string/pref_systemContacts_summary"
245 app:srcCompat="@drawable/ic_group_black" />
Aline Bonnet58357512016-12-14 16:55:50 -0500246
247 </LinearLayout>
248
249 <LinearLayout
250 android:layout_width="wrap_content"
251 android:layout_height="wrap_content"
Aline Bonnet58357512016-12-14 16:55:50 -0500252 android:layout_centerVertical="true"
Pierre Duchemina5529292017-12-18 17:25:54 -0500253 android:layout_toEndOf="@+id/contacts_image"
254 android:layout_toStartOf="@+id/settings_contacts"
255 android:orientation="vertical"
Aline Bonnet58357512016-12-14 16:55:50 -0500256 android:paddingLeft="16dp"
Pierre Duchemina5529292017-12-18 17:25:54 -0500257 android:paddingRight="16dp">
Aline Bonnet58357512016-12-14 16:55:50 -0500258
259 <TextView
260 style="@style/ListPrimary"
261 android:layout_width="match_parent"
262 android:layout_height="wrap_content"
263 android:lines="1"
264 android:text="@string/pref_systemContacts_title" />
265
266 <TextView
267 android:layout_width="match_parent"
268 android:layout_height="wrap_content"
269 android:text="@string/pref_systemContacts_summary" />
270
271 </LinearLayout>
272
273 <Switch
274 android:id="@+id/settings_contacts"
275 android:layout_width="wrap_content"
276 android:layout_height="wrap_content"
Aline Bonnet58357512016-12-14 16:55:50 -0500277 android:layout_alignParentEnd="true"
278 android:checked="false" />
279
280 </RelativeLayout>
281
282 <!-- System settings -->
283
284 <TextView
285 android:layout_width="wrap_content"
286 android:layout_height="wrap_content"
287 android:padding="8dp"
288 android:text="@string/pref_category_system"
289 android:textColor="@color/color_primary_dark"
290 android:textSize="18sp" />
291
292 <RelativeLayout
293 android:layout_width="match_parent"
294 android:layout_height="wrap_content"
295 android:orientation="horizontal"
296 android:padding="8dp"
297 android:weightSum="1">
298
299 <LinearLayout
300 android:id="@+id/system_dialer_image"
301 android:layout_width="wrap_content"
302 android:layout_height="wrap_content"
Pierre Duchemina5529292017-12-18 17:25:54 -0500303 android:layout_alignParentStart="true"
304 android:layout_centerVertical="true">
Aline Bonnet58357512016-12-14 16:55:50 -0500305
306 <ImageView
307 android:layout_width="wrap_content"
308 android:layout_height="wrap_content"
309 android:layout_gravity="start"
Pierre Duchemina5529292017-12-18 17:25:54 -0500310 android:contentDescription="@string/pref_systemDialer_summary"
311 app:srcCompat="@drawable/ic_dialpad_black" />
Aline Bonnet58357512016-12-14 16:55:50 -0500312
313 </LinearLayout>
314
315 <LinearLayout
316 android:layout_width="wrap_content"
317 android:layout_height="wrap_content"
Aline Bonnet58357512016-12-14 16:55:50 -0500318 android:layout_centerVertical="true"
Pierre Duchemina5529292017-12-18 17:25:54 -0500319 android:layout_toEndOf="@+id/system_dialer_image"
320 android:layout_toStartOf="@+id/settings_place_call"
321 android:orientation="vertical"
Aline Bonnet58357512016-12-14 16:55:50 -0500322 android:paddingLeft="16dp"
Pierre Duchemina5529292017-12-18 17:25:54 -0500323 android:paddingRight="16dp">
Aline Bonnet58357512016-12-14 16:55:50 -0500324
325 <TextView
326 style="@style/ListPrimary"
327 android:layout_width="match_parent"
328 android:layout_height="wrap_content"
Aline Bonnet58357512016-12-14 16:55:50 -0500329 android:ellipsize="end"
Pierre Duchemina5529292017-12-18 17:25:54 -0500330 android:lines="1"
Aline Bonnet58357512016-12-14 16:55:50 -0500331 android:text="@string/pref_systemDialer_title" />
332
333 <TextView
334 android:layout_width="match_parent"
335 android:layout_height="wrap_content"
336 android:text="@string/pref_systemDialer_summary" />
337
338 </LinearLayout>
339
340 <Switch
341 android:id="@+id/settings_place_call"
342 android:layout_width="wrap_content"
343 android:layout_height="wrap_content"
Aline Bonnet58357512016-12-14 16:55:50 -0500344 android:layout_alignParentEnd="true"
345 android:checked="false" />
346
347 </RelativeLayout>
348
349 <RelativeLayout
350 android:layout_width="match_parent"
351 android:layout_height="wrap_content"
352 android:orientation="horizontal"
353 android:padding="8dp"
354 android:weightSum="1">
355
356 <LinearLayout
357 android:id="@+id/system_startOnBoot_image"
358 android:layout_width="wrap_content"
359 android:layout_height="wrap_content"
Pierre Duchemina5529292017-12-18 17:25:54 -0500360 android:layout_alignParentStart="true"
361 android:layout_centerVertical="true">
Aline Bonnet58357512016-12-14 16:55:50 -0500362
363
Pierre Duchemina5529292017-12-18 17:25:54 -0500364 <ImageView
Aline Bonnet58357512016-12-14 16:55:50 -0500365 android:layout_width="wrap_content"
366 android:layout_height="wrap_content"
367 android:layout_gravity="start"
Pierre Duchemina5529292017-12-18 17:25:54 -0500368 android:contentDescription="@string/pref_startOnBoot_summary"
369 app:srcCompat="@drawable/ic_android_black" />
Aline Bonnet58357512016-12-14 16:55:50 -0500370
371 </LinearLayout>
372
373 <LinearLayout
374 android:layout_width="wrap_content"
375 android:layout_height="wrap_content"
Aline Bonnet58357512016-12-14 16:55:50 -0500376 android:layout_centerVertical="true"
Pierre Duchemina5529292017-12-18 17:25:54 -0500377 android:layout_toEndOf="@+id/system_startOnBoot_image"
378 android:layout_toStartOf="@+id/settings_startup"
379 android:orientation="vertical"
Aline Bonnet58357512016-12-14 16:55:50 -0500380 android:paddingLeft="16dp"
Pierre Duchemina5529292017-12-18 17:25:54 -0500381 android:paddingRight="16dp">
Aline Bonnet58357512016-12-14 16:55:50 -0500382
383 <TextView
384 style="@style/ListPrimary"
385 android:layout_width="match_parent"
386 android:layout_height="wrap_content"
Aline Bonnet58357512016-12-14 16:55:50 -0500387 android:ellipsize="end"
Pierre Duchemina5529292017-12-18 17:25:54 -0500388 android:lines="1"
Aline Bonnet58357512016-12-14 16:55:50 -0500389 android:text="@string/pref_startOnBoot_title" />
390
391 <TextView
392 android:layout_width="match_parent"
393 android:layout_height="wrap_content"
394 android:text="@string/pref_startOnBoot_summary" />
395
396 </LinearLayout>
397
398 <Switch
399 android:id="@+id/settings_startup"
400 android:layout_width="wrap_content"
401 android:layout_height="wrap_content"
Aline Bonnet58357512016-12-14 16:55:50 -0500402 android:layout_alignParentEnd="true"
403 android:checked="false" />
404
405 </RelativeLayout>
406
407 <!-- Privacy -->
408
409 <TextView
410 android:layout_width="wrap_content"
411 android:layout_height="wrap_content"
412 android:padding="8dp"
413 android:text="@string/pref_category_privacy"
414 android:textColor="@color/color_primary_dark"
415 android:textSize="18sp" />
416
417 <LinearLayout
418 android:id="@+id/settings_clear_history"
419 android:layout_width="match_parent"
420 android:layout_height="wrap_content"
421 android:background="?attr/selectableItemBackground"
Pierre Duchemina5529292017-12-18 17:25:54 -0500422 android:orientation="vertical"
423 android:padding="8dp">
Aline Bonnet58357512016-12-14 16:55:50 -0500424
425 <TextView
426 style="@style/ListPrimary"
427 android:layout_width="match_parent"
428 android:layout_height="wrap_content"
Aline Bonnet58357512016-12-14 16:55:50 -0500429 android:ellipsize="end"
Pierre Duchemina5529292017-12-18 17:25:54 -0500430 android:lines="1"
Aline Bonnet58357512016-12-14 16:55:50 -0500431 android:text="@string/pref_clearHistory_title" />
432
433 <TextView
434 android:layout_width="match_parent"
435 android:layout_height="wrap_content"
436 android:text="@string/pref_clearHistory_summary" />
437
438 </LinearLayout>
439
440 </LinearLayout>
441 </cx.ring.views.BoundedScrollView>
442 </RelativeLayout>
Thibault Wittemberg77cf6002016-11-09 16:53:31 -0500443</ScrollView>