blob: 05df998147acfa94313bd6af474fddd22fea1592 [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
Aline Bonnet58357512016-12-14 16:55:50 -050034 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
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"
38 android:padding="@dimen/padding_medium">
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
56 <LinearLayout
57 android:id="@+id/network_image"
58 android:layout_width="wrap_content"
59 android:layout_height="wrap_content"
Pierre Duchemina5529292017-12-18 17:25:54 -050060 android:layout_alignParentStart="true"
61 android:layout_centerVertical="true">
Aline Bonnet58357512016-12-14 16:55:50 -050062
63 <ImageView
64 android:layout_width="wrap_content"
65 android:layout_height="wrap_content"
66 android:layout_gravity="start"
Pierre Duchemina5529292017-12-18 17:25:54 -050067 android:contentDescription="@string/pref_mobileData_summary"
68 android:src="@drawable/ic_perm_data_setting_black_24dp" />
Aline Bonnet58357512016-12-14 16:55:50 -050069
70 </LinearLayout>
71
72 <LinearLayout
73 android:layout_width="wrap_content"
74 android:layout_height="wrap_content"
Aline Bonnet58357512016-12-14 16:55:50 -050075 android:layout_centerVertical="true"
Pierre Duchemina5529292017-12-18 17:25:54 -050076 android:layout_toEndOf="@+id/network_image"
77 android:layout_toStartOf="@+id/settings_mobile_data"
78 android:orientation="vertical"
Aline Bonnet58357512016-12-14 16:55:50 -050079 android:paddingLeft="16dp"
Pierre Duchemina5529292017-12-18 17:25:54 -050080 android:paddingRight="16dp">
Aline Bonnet58357512016-12-14 16:55:50 -050081
82 <TextView
83 style="@style/ListPrimary"
84 android:layout_width="match_parent"
85 android:layout_height="wrap_content"
86 android:lines="1"
87 android:text="@string/pref_mobileData_title" />
88
89 <TextView
90 android:layout_width="match_parent"
91 android:layout_height="wrap_content"
92 android:text="@string/pref_mobileData_summary" />
93
94 </LinearLayout>
95
96 <Switch
97 android:id="@+id/settings_mobile_data"
98 android:layout_width="wrap_content"
99 android:layout_height="wrap_content"
Aline Bonnet58357512016-12-14 16:55:50 -0500100 android:layout_alignParentEnd="true"
101 android:checked="false" />
102
103 </RelativeLayout>
104
105 <!-- Contacts settings -->
106
107 <TextView
108 android:layout_width="wrap_content"
109 android:layout_height="wrap_content"
110 android:padding="8dp"
111 android:text="@string/pref_category_contacts"
112 android:textColor="@color/color_primary_dark"
113 android:textSize="18sp" />
114
115 <RelativeLayout
116 android:layout_width="match_parent"
117 android:layout_height="wrap_content"
118 android:orientation="horizontal"
119 android:padding="8dp"
120 android:weightSum="1">
121
122 <LinearLayout
123 android:id="@+id/contacts_image"
124 android:layout_width="wrap_content"
125 android:layout_height="wrap_content"
Pierre Duchemina5529292017-12-18 17:25:54 -0500126 android:layout_alignParentStart="true"
127 android:layout_centerVertical="true">
Aline Bonnet58357512016-12-14 16:55:50 -0500128
129 <ImageView
130 android:layout_width="wrap_content"
131 android:layout_height="wrap_content"
132 android:layout_gravity="start"
Pierre Duchemina5529292017-12-18 17:25:54 -0500133 android:contentDescription="@string/pref_systemContacts_summary"
134 app:srcCompat="@drawable/ic_group_black" />
Aline Bonnet58357512016-12-14 16:55:50 -0500135
136 </LinearLayout>
137
138 <LinearLayout
139 android:layout_width="wrap_content"
140 android:layout_height="wrap_content"
Aline Bonnet58357512016-12-14 16:55:50 -0500141 android:layout_centerVertical="true"
Pierre Duchemina5529292017-12-18 17:25:54 -0500142 android:layout_toEndOf="@+id/contacts_image"
143 android:layout_toStartOf="@+id/settings_contacts"
144 android:orientation="vertical"
Aline Bonnet58357512016-12-14 16:55:50 -0500145 android:paddingLeft="16dp"
Pierre Duchemina5529292017-12-18 17:25:54 -0500146 android:paddingRight="16dp">
Aline Bonnet58357512016-12-14 16:55:50 -0500147
148 <TextView
149 style="@style/ListPrimary"
150 android:layout_width="match_parent"
151 android:layout_height="wrap_content"
152 android:lines="1"
153 android:text="@string/pref_systemContacts_title" />
154
155 <TextView
156 android:layout_width="match_parent"
157 android:layout_height="wrap_content"
158 android:text="@string/pref_systemContacts_summary" />
159
160 </LinearLayout>
161
162 <Switch
163 android:id="@+id/settings_contacts"
164 android:layout_width="wrap_content"
165 android:layout_height="wrap_content"
Aline Bonnet58357512016-12-14 16:55:50 -0500166 android:layout_alignParentEnd="true"
167 android:checked="false" />
168
169 </RelativeLayout>
170
171 <!-- System settings -->
172
173 <TextView
174 android:layout_width="wrap_content"
175 android:layout_height="wrap_content"
176 android:padding="8dp"
177 android:text="@string/pref_category_system"
178 android:textColor="@color/color_primary_dark"
179 android:textSize="18sp" />
180
181 <RelativeLayout
182 android:layout_width="match_parent"
183 android:layout_height="wrap_content"
184 android:orientation="horizontal"
185 android:padding="8dp"
186 android:weightSum="1">
187
188 <LinearLayout
189 android:id="@+id/system_dialer_image"
190 android:layout_width="wrap_content"
191 android:layout_height="wrap_content"
Pierre Duchemina5529292017-12-18 17:25:54 -0500192 android:layout_alignParentStart="true"
193 android:layout_centerVertical="true">
Aline Bonnet58357512016-12-14 16:55:50 -0500194
195 <ImageView
196 android:layout_width="wrap_content"
197 android:layout_height="wrap_content"
198 android:layout_gravity="start"
Pierre Duchemina5529292017-12-18 17:25:54 -0500199 android:contentDescription="@string/pref_systemDialer_summary"
200 app:srcCompat="@drawable/ic_dialpad_black" />
Aline Bonnet58357512016-12-14 16:55:50 -0500201
202 </LinearLayout>
203
204 <LinearLayout
205 android:layout_width="wrap_content"
206 android:layout_height="wrap_content"
Aline Bonnet58357512016-12-14 16:55:50 -0500207 android:layout_centerVertical="true"
Pierre Duchemina5529292017-12-18 17:25:54 -0500208 android:layout_toEndOf="@+id/system_dialer_image"
209 android:layout_toStartOf="@+id/settings_place_call"
210 android:orientation="vertical"
Aline Bonnet58357512016-12-14 16:55:50 -0500211 android:paddingLeft="16dp"
Pierre Duchemina5529292017-12-18 17:25:54 -0500212 android:paddingRight="16dp">
Aline Bonnet58357512016-12-14 16:55:50 -0500213
214 <TextView
215 style="@style/ListPrimary"
216 android:layout_width="match_parent"
217 android:layout_height="wrap_content"
Aline Bonnet58357512016-12-14 16:55:50 -0500218 android:ellipsize="end"
Pierre Duchemina5529292017-12-18 17:25:54 -0500219 android:lines="1"
Aline Bonnet58357512016-12-14 16:55:50 -0500220 android:text="@string/pref_systemDialer_title" />
221
222 <TextView
223 android:layout_width="match_parent"
224 android:layout_height="wrap_content"
225 android:text="@string/pref_systemDialer_summary" />
226
227 </LinearLayout>
228
229 <Switch
230 android:id="@+id/settings_place_call"
231 android:layout_width="wrap_content"
232 android:layout_height="wrap_content"
Aline Bonnet58357512016-12-14 16:55:50 -0500233 android:layout_alignParentEnd="true"
234 android:checked="false" />
235
236 </RelativeLayout>
237
238 <RelativeLayout
239 android:layout_width="match_parent"
240 android:layout_height="wrap_content"
241 android:orientation="horizontal"
242 android:padding="8dp"
243 android:weightSum="1">
244
245 <LinearLayout
246 android:id="@+id/system_startOnBoot_image"
247 android:layout_width="wrap_content"
248 android:layout_height="wrap_content"
Pierre Duchemina5529292017-12-18 17:25:54 -0500249 android:layout_alignParentStart="true"
250 android:layout_centerVertical="true">
Aline Bonnet58357512016-12-14 16:55:50 -0500251
252
Pierre Duchemina5529292017-12-18 17:25:54 -0500253 <ImageView
Aline Bonnet58357512016-12-14 16:55:50 -0500254 android:layout_width="wrap_content"
255 android:layout_height="wrap_content"
256 android:layout_gravity="start"
Pierre Duchemina5529292017-12-18 17:25:54 -0500257 android:contentDescription="@string/pref_startOnBoot_summary"
258 app:srcCompat="@drawable/ic_android_black" />
Aline Bonnet58357512016-12-14 16:55:50 -0500259
260 </LinearLayout>
261
262 <LinearLayout
263 android:layout_width="wrap_content"
264 android:layout_height="wrap_content"
Aline Bonnet58357512016-12-14 16:55:50 -0500265 android:layout_centerVertical="true"
Pierre Duchemina5529292017-12-18 17:25:54 -0500266 android:layout_toEndOf="@+id/system_startOnBoot_image"
267 android:layout_toStartOf="@+id/settings_startup"
268 android:orientation="vertical"
Aline Bonnet58357512016-12-14 16:55:50 -0500269 android:paddingLeft="16dp"
Pierre Duchemina5529292017-12-18 17:25:54 -0500270 android:paddingRight="16dp">
Aline Bonnet58357512016-12-14 16:55:50 -0500271
272 <TextView
273 style="@style/ListPrimary"
274 android:layout_width="match_parent"
275 android:layout_height="wrap_content"
Aline Bonnet58357512016-12-14 16:55:50 -0500276 android:ellipsize="end"
Pierre Duchemina5529292017-12-18 17:25:54 -0500277 android:lines="1"
Aline Bonnet58357512016-12-14 16:55:50 -0500278 android:text="@string/pref_startOnBoot_title" />
279
280 <TextView
281 android:layout_width="match_parent"
282 android:layout_height="wrap_content"
283 android:text="@string/pref_startOnBoot_summary" />
284
285 </LinearLayout>
286
287 <Switch
288 android:id="@+id/settings_startup"
289 android:layout_width="wrap_content"
290 android:layout_height="wrap_content"
Aline Bonnet58357512016-12-14 16:55:50 -0500291 android:layout_alignParentEnd="true"
292 android:checked="false" />
293
294 </RelativeLayout>
295
296 <!-- Privacy -->
297
298 <TextView
299 android:layout_width="wrap_content"
300 android:layout_height="wrap_content"
301 android:padding="8dp"
302 android:text="@string/pref_category_privacy"
303 android:textColor="@color/color_primary_dark"
304 android:textSize="18sp" />
305
306 <LinearLayout
307 android:id="@+id/settings_clear_history"
308 android:layout_width="match_parent"
309 android:layout_height="wrap_content"
310 android:background="?attr/selectableItemBackground"
Pierre Duchemina5529292017-12-18 17:25:54 -0500311 android:orientation="vertical"
312 android:padding="8dp">
Aline Bonnet58357512016-12-14 16:55:50 -0500313
314 <TextView
315 style="@style/ListPrimary"
316 android:layout_width="match_parent"
317 android:layout_height="wrap_content"
Aline Bonnet58357512016-12-14 16:55:50 -0500318 android:ellipsize="end"
Pierre Duchemina5529292017-12-18 17:25:54 -0500319 android:lines="1"
Aline Bonnet58357512016-12-14 16:55:50 -0500320 android:text="@string/pref_clearHistory_title" />
321
322 <TextView
323 android:layout_width="match_parent"
324 android:layout_height="wrap_content"
325 android:text="@string/pref_clearHistory_summary" />
326
327 </LinearLayout>
328
329 </LinearLayout>
330 </cx.ring.views.BoundedScrollView>
331 </RelativeLayout>
Thibault Wittemberg77cf6002016-11-09 16:53:31 -0500332</ScrollView>