blob: d2d43e8947b8d9cf18096d2cfb9e115f518a7e61 [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"
106 android:padding="8dp">
107
108 <ImageView
109 android:id="@+id/push_image"
110 android:layout_width="wrap_content"
111 android:layout_height="wrap_content"
112 android:layout_alignParentStart="true"
113 android:layout_centerVertical="true"
114 android:layout_gravity="start"
115 android:contentDescription="@string/pref_pushNotifications_summary"
116 app:srcCompat="@drawable/ic_priority_high_black_24dp" />
117
118 <LinearLayout
119 android:layout_width="wrap_content"
120 android:layout_height="wrap_content"
121 android:layout_centerVertical="true"
122 android:layout_toEndOf="@+id/push_image"
123 android:layout_toStartOf="@+id/settings_push_notifications"
124 android:orientation="vertical"
125 android:paddingLeft="16dp"
126 android:paddingRight="16dp">
127
128 <TextView
129 style="@style/ListPrimary"
130 android:layout_width="match_parent"
131 android:layout_height="wrap_content"
132 android:lines="1"
133 android:text="@string/pref_pushNotifications_title" />
134
135 <TextView
136 android:layout_width="match_parent"
137 android:layout_height="wrap_content"
138 android:text="@string/pref_pushNotifications_summary" />
139
140 </LinearLayout>
141
142 <Switch
143 android:id="@+id/settings_push_notifications"
144 android:layout_width="wrap_content"
145 android:layout_height="wrap_content"
146 android:layout_alignParentEnd="true"
147 android:checked="false" />
148
149 </RelativeLayout>
150
151
Aline Bonnet58357512016-12-14 16:55:50 -0500152 <!-- Contacts settings -->
153
154 <TextView
155 android:layout_width="wrap_content"
156 android:layout_height="wrap_content"
157 android:padding="8dp"
158 android:text="@string/pref_category_contacts"
159 android:textColor="@color/color_primary_dark"
160 android:textSize="18sp" />
161
162 <RelativeLayout
163 android:layout_width="match_parent"
164 android:layout_height="wrap_content"
165 android:orientation="horizontal"
166 android:padding="8dp"
167 android:weightSum="1">
168
169 <LinearLayout
170 android:id="@+id/contacts_image"
171 android:layout_width="wrap_content"
172 android:layout_height="wrap_content"
Pierre Duchemina5529292017-12-18 17:25:54 -0500173 android:layout_alignParentStart="true"
174 android:layout_centerVertical="true">
Aline Bonnet58357512016-12-14 16:55:50 -0500175
176 <ImageView
177 android:layout_width="wrap_content"
178 android:layout_height="wrap_content"
179 android:layout_gravity="start"
Pierre Duchemina5529292017-12-18 17:25:54 -0500180 android:contentDescription="@string/pref_systemContacts_summary"
181 app:srcCompat="@drawable/ic_group_black" />
Aline Bonnet58357512016-12-14 16:55:50 -0500182
183 </LinearLayout>
184
185 <LinearLayout
186 android:layout_width="wrap_content"
187 android:layout_height="wrap_content"
Aline Bonnet58357512016-12-14 16:55:50 -0500188 android:layout_centerVertical="true"
Pierre Duchemina5529292017-12-18 17:25:54 -0500189 android:layout_toEndOf="@+id/contacts_image"
190 android:layout_toStartOf="@+id/settings_contacts"
191 android:orientation="vertical"
Aline Bonnet58357512016-12-14 16:55:50 -0500192 android:paddingLeft="16dp"
Pierre Duchemina5529292017-12-18 17:25:54 -0500193 android:paddingRight="16dp">
Aline Bonnet58357512016-12-14 16:55:50 -0500194
195 <TextView
196 style="@style/ListPrimary"
197 android:layout_width="match_parent"
198 android:layout_height="wrap_content"
199 android:lines="1"
200 android:text="@string/pref_systemContacts_title" />
201
202 <TextView
203 android:layout_width="match_parent"
204 android:layout_height="wrap_content"
205 android:text="@string/pref_systemContacts_summary" />
206
207 </LinearLayout>
208
209 <Switch
210 android:id="@+id/settings_contacts"
211 android:layout_width="wrap_content"
212 android:layout_height="wrap_content"
Aline Bonnet58357512016-12-14 16:55:50 -0500213 android:layout_alignParentEnd="true"
214 android:checked="false" />
215
216 </RelativeLayout>
217
218 <!-- System settings -->
219
220 <TextView
221 android:layout_width="wrap_content"
222 android:layout_height="wrap_content"
223 android:padding="8dp"
224 android:text="@string/pref_category_system"
225 android:textColor="@color/color_primary_dark"
226 android:textSize="18sp" />
227
228 <RelativeLayout
229 android:layout_width="match_parent"
230 android:layout_height="wrap_content"
231 android:orientation="horizontal"
232 android:padding="8dp"
233 android:weightSum="1">
234
235 <LinearLayout
236 android:id="@+id/system_dialer_image"
237 android:layout_width="wrap_content"
238 android:layout_height="wrap_content"
Pierre Duchemina5529292017-12-18 17:25:54 -0500239 android:layout_alignParentStart="true"
240 android:layout_centerVertical="true">
Aline Bonnet58357512016-12-14 16:55:50 -0500241
242 <ImageView
243 android:layout_width="wrap_content"
244 android:layout_height="wrap_content"
245 android:layout_gravity="start"
Pierre Duchemina5529292017-12-18 17:25:54 -0500246 android:contentDescription="@string/pref_systemDialer_summary"
247 app:srcCompat="@drawable/ic_dialpad_black" />
Aline Bonnet58357512016-12-14 16:55:50 -0500248
249 </LinearLayout>
250
251 <LinearLayout
252 android:layout_width="wrap_content"
253 android:layout_height="wrap_content"
Aline Bonnet58357512016-12-14 16:55:50 -0500254 android:layout_centerVertical="true"
Pierre Duchemina5529292017-12-18 17:25:54 -0500255 android:layout_toEndOf="@+id/system_dialer_image"
256 android:layout_toStartOf="@+id/settings_place_call"
257 android:orientation="vertical"
Aline Bonnet58357512016-12-14 16:55:50 -0500258 android:paddingLeft="16dp"
Pierre Duchemina5529292017-12-18 17:25:54 -0500259 android:paddingRight="16dp">
Aline Bonnet58357512016-12-14 16:55:50 -0500260
261 <TextView
262 style="@style/ListPrimary"
263 android:layout_width="match_parent"
264 android:layout_height="wrap_content"
Aline Bonnet58357512016-12-14 16:55:50 -0500265 android:ellipsize="end"
Pierre Duchemina5529292017-12-18 17:25:54 -0500266 android:lines="1"
Aline Bonnet58357512016-12-14 16:55:50 -0500267 android:text="@string/pref_systemDialer_title" />
268
269 <TextView
270 android:layout_width="match_parent"
271 android:layout_height="wrap_content"
272 android:text="@string/pref_systemDialer_summary" />
273
274 </LinearLayout>
275
276 <Switch
277 android:id="@+id/settings_place_call"
278 android:layout_width="wrap_content"
279 android:layout_height="wrap_content"
Aline Bonnet58357512016-12-14 16:55:50 -0500280 android:layout_alignParentEnd="true"
281 android:checked="false" />
282
283 </RelativeLayout>
284
285 <RelativeLayout
286 android:layout_width="match_parent"
287 android:layout_height="wrap_content"
288 android:orientation="horizontal"
289 android:padding="8dp"
290 android:weightSum="1">
291
292 <LinearLayout
293 android:id="@+id/system_startOnBoot_image"
294 android:layout_width="wrap_content"
295 android:layout_height="wrap_content"
Pierre Duchemina5529292017-12-18 17:25:54 -0500296 android:layout_alignParentStart="true"
297 android:layout_centerVertical="true">
Aline Bonnet58357512016-12-14 16:55:50 -0500298
299
Pierre Duchemina5529292017-12-18 17:25:54 -0500300 <ImageView
Aline Bonnet58357512016-12-14 16:55:50 -0500301 android:layout_width="wrap_content"
302 android:layout_height="wrap_content"
303 android:layout_gravity="start"
Pierre Duchemina5529292017-12-18 17:25:54 -0500304 android:contentDescription="@string/pref_startOnBoot_summary"
305 app:srcCompat="@drawable/ic_android_black" />
Aline Bonnet58357512016-12-14 16:55:50 -0500306
307 </LinearLayout>
308
309 <LinearLayout
310 android:layout_width="wrap_content"
311 android:layout_height="wrap_content"
Aline Bonnet58357512016-12-14 16:55:50 -0500312 android:layout_centerVertical="true"
Pierre Duchemina5529292017-12-18 17:25:54 -0500313 android:layout_toEndOf="@+id/system_startOnBoot_image"
314 android:layout_toStartOf="@+id/settings_startup"
315 android:orientation="vertical"
Aline Bonnet58357512016-12-14 16:55:50 -0500316 android:paddingLeft="16dp"
Pierre Duchemina5529292017-12-18 17:25:54 -0500317 android:paddingRight="16dp">
Aline Bonnet58357512016-12-14 16:55:50 -0500318
319 <TextView
320 style="@style/ListPrimary"
321 android:layout_width="match_parent"
322 android:layout_height="wrap_content"
Aline Bonnet58357512016-12-14 16:55:50 -0500323 android:ellipsize="end"
Pierre Duchemina5529292017-12-18 17:25:54 -0500324 android:lines="1"
Aline Bonnet58357512016-12-14 16:55:50 -0500325 android:text="@string/pref_startOnBoot_title" />
326
327 <TextView
328 android:layout_width="match_parent"
329 android:layout_height="wrap_content"
330 android:text="@string/pref_startOnBoot_summary" />
331
332 </LinearLayout>
333
334 <Switch
335 android:id="@+id/settings_startup"
336 android:layout_width="wrap_content"
337 android:layout_height="wrap_content"
Aline Bonnet58357512016-12-14 16:55:50 -0500338 android:layout_alignParentEnd="true"
339 android:checked="false" />
340
341 </RelativeLayout>
342
343 <!-- Privacy -->
344
345 <TextView
346 android:layout_width="wrap_content"
347 android:layout_height="wrap_content"
348 android:padding="8dp"
349 android:text="@string/pref_category_privacy"
350 android:textColor="@color/color_primary_dark"
351 android:textSize="18sp" />
352
353 <LinearLayout
354 android:id="@+id/settings_clear_history"
355 android:layout_width="match_parent"
356 android:layout_height="wrap_content"
357 android:background="?attr/selectableItemBackground"
Pierre Duchemina5529292017-12-18 17:25:54 -0500358 android:orientation="vertical"
359 android:padding="8dp">
Aline Bonnet58357512016-12-14 16:55:50 -0500360
361 <TextView
362 style="@style/ListPrimary"
363 android:layout_width="match_parent"
364 android:layout_height="wrap_content"
Aline Bonnet58357512016-12-14 16:55:50 -0500365 android:ellipsize="end"
Pierre Duchemina5529292017-12-18 17:25:54 -0500366 android:lines="1"
Aline Bonnet58357512016-12-14 16:55:50 -0500367 android:text="@string/pref_clearHistory_title" />
368
369 <TextView
370 android:layout_width="match_parent"
371 android:layout_height="wrap_content"
372 android:text="@string/pref_clearHistory_summary" />
373
374 </LinearLayout>
375
376 </LinearLayout>
377 </cx.ring.views.BoundedScrollView>
378 </RelativeLayout>
Thibault Wittemberg77cf6002016-11-09 16:53:31 -0500379</ScrollView>