Thibault Wittemberg | 77cf600 | 2016-11-09 16:53:31 -0500 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?><!-- Copyright (c) 2016 Savoir-faire Linux Inc. |
| 2 | |
| 3 | Author: Thibault Wittemberg <thibault.wittemberg@savoirfairelinux.com> |
| 4 | |
| 5 | This program is free software; you can redistribute it and/or modify |
| 6 | it under the terms of the GNU General Public License as published by |
| 7 | the Free Software Foundation; either version 3 of the License, or |
| 8 | (at your option) any later version. |
| 9 | |
| 10 | This program is distributed in the hope that it will be useful, |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | GNU General Public License for more details. |
| 14 | |
| 15 | You should have received a copy of the GNU General Public License |
| 16 | along 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 Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 20 | xmlns:app="http://schemas.android.com/apk/res-auto" |
Thibault Wittemberg | 77cf600 | 2016-11-09 16:53:31 -0500 | [diff] [blame] | 21 | android:layout_width="match_parent" |
| 22 | android:layout_height="match_parent"> |
| 23 | |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 24 | <RelativeLayout |
Thibault Wittemberg | 77cf600 | 2016-11-09 16:53:31 -0500 | [diff] [blame] | 25 | android:layout_width="match_parent" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 26 | android:layout_height="wrap_content"> |
Thibault Wittemberg | 77cf600 | 2016-11-09 16:53:31 -0500 | [diff] [blame] | 27 | |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 28 | <cx.ring.views.BoundedScrollView |
Thibault Wittemberg | 77cf600 | 2016-11-09 16:53:31 -0500 | [diff] [blame] | 29 | android:layout_width="match_parent" |
| 30 | android:layout_height="wrap_content" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 31 | android:layout_centerInParent="true" |
| 32 | app:bounded_width="600dp"> |
Thibault Wittemberg | 77cf600 | 2016-11-09 16:53:31 -0500 | [diff] [blame] | 33 | |
Adrien Béraud | 2693eca | 2018-01-24 16:38:48 -0500 | [diff] [blame] | 34 | <LinearLayout |
Thibault Wittemberg | 77cf600 | 2016-11-09 16:53:31 -0500 | [diff] [blame] | 35 | android:layout_width="match_parent" |
| 36 | android:layout_height="wrap_content" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 37 | android:orientation="vertical" |
Adrien Béraud | 954d7a5 | 2018-03-02 12:06:34 -0500 | [diff] [blame] | 38 | android:padding="@dimen/padding_small"> |
Thibault Wittemberg | 77cf600 | 2016-11-09 16:53:31 -0500 | [diff] [blame] | 39 | |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 40 | <!-- Network settings --> |
Thibault Wittemberg | 77cf600 | 2016-11-09 16:53:31 -0500 | [diff] [blame] | 41 | |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 42 | <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 Wittemberg | 77cf600 | 2016-11-09 16:53:31 -0500 | [diff] [blame] | 49 | |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 50 | <RelativeLayout |
| 51 | android:layout_width="match_parent" |
| 52 | android:layout_height="wrap_content" |
| 53 | android:orientation="horizontal" |
| 54 | android:padding="8dp"> |
| 55 | |
Adrien Béraud | 2693eca | 2018-01-24 16:38:48 -0500 | [diff] [blame] | 56 | |
| 57 | <ImageView |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 58 | android:id="@+id/network_image" |
| 59 | android:layout_width="wrap_content" |
| 60 | android:layout_height="wrap_content" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 61 | android:layout_alignParentStart="true" |
Adrien Béraud | 2693eca | 2018-01-24 16:38:48 -0500 | [diff] [blame] | 62 | android:layout_centerVertical="true" |
| 63 | android:layout_gravity="start" |
| 64 | android:contentDescription="@string/pref_mobileData_summary" |
Pierre Duchemin | 932b96d | 2018-05-10 09:36:52 -0400 | [diff] [blame^] | 65 | app:srcCompat="@drawable/baseline_perm_data_setting_24px" /> |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 66 | |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 67 | |
| 68 | <LinearLayout |
| 69 | android:layout_width="wrap_content" |
| 70 | android:layout_height="wrap_content" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 71 | android:layout_centerVertical="true" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 72 | android:layout_toEndOf="@+id/network_image" |
| 73 | android:layout_toStartOf="@+id/settings_mobile_data" |
| 74 | android:orientation="vertical" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 75 | android:paddingLeft="16dp" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 76 | android:paddingRight="16dp"> |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 77 | |
| 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 Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 96 | android:layout_alignParentEnd="true" |
| 97 | android:checked="false" /> |
| 98 | |
| 99 | </RelativeLayout> |
| 100 | |
Adrien Béraud | 2693eca | 2018-01-24 16:38:48 -0500 | [diff] [blame] | 101 | |
| 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 Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 152 | <!-- 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 Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 173 | android:layout_alignParentStart="true" |
| 174 | android:layout_centerVertical="true"> |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 175 | |
| 176 | <ImageView |
| 177 | android:layout_width="wrap_content" |
| 178 | android:layout_height="wrap_content" |
| 179 | android:layout_gravity="start" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 180 | android:contentDescription="@string/pref_systemContacts_summary" |
| 181 | app:srcCompat="@drawable/ic_group_black" /> |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 182 | |
| 183 | </LinearLayout> |
| 184 | |
| 185 | <LinearLayout |
| 186 | android:layout_width="wrap_content" |
| 187 | android:layout_height="wrap_content" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 188 | android:layout_centerVertical="true" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 189 | android:layout_toEndOf="@+id/contacts_image" |
| 190 | android:layout_toStartOf="@+id/settings_contacts" |
| 191 | android:orientation="vertical" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 192 | android:paddingLeft="16dp" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 193 | android:paddingRight="16dp"> |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 194 | |
| 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 Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 213 | 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 Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 239 | android:layout_alignParentStart="true" |
| 240 | android:layout_centerVertical="true"> |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 241 | |
| 242 | <ImageView |
| 243 | android:layout_width="wrap_content" |
| 244 | android:layout_height="wrap_content" |
| 245 | android:layout_gravity="start" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 246 | android:contentDescription="@string/pref_systemDialer_summary" |
| 247 | app:srcCompat="@drawable/ic_dialpad_black" /> |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 248 | |
| 249 | </LinearLayout> |
| 250 | |
| 251 | <LinearLayout |
| 252 | android:layout_width="wrap_content" |
| 253 | android:layout_height="wrap_content" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 254 | android:layout_centerVertical="true" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 255 | android:layout_toEndOf="@+id/system_dialer_image" |
| 256 | android:layout_toStartOf="@+id/settings_place_call" |
| 257 | android:orientation="vertical" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 258 | android:paddingLeft="16dp" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 259 | android:paddingRight="16dp"> |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 260 | |
| 261 | <TextView |
| 262 | style="@style/ListPrimary" |
| 263 | android:layout_width="match_parent" |
| 264 | android:layout_height="wrap_content" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 265 | android:ellipsize="end" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 266 | android:lines="1" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 267 | 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 Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 280 | 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 Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 296 | android:layout_alignParentStart="true" |
| 297 | android:layout_centerVertical="true"> |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 298 | |
| 299 | |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 300 | <ImageView |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 301 | android:layout_width="wrap_content" |
| 302 | android:layout_height="wrap_content" |
| 303 | android:layout_gravity="start" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 304 | android:contentDescription="@string/pref_startOnBoot_summary" |
| 305 | app:srcCompat="@drawable/ic_android_black" /> |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 306 | |
| 307 | </LinearLayout> |
| 308 | |
| 309 | <LinearLayout |
| 310 | android:layout_width="wrap_content" |
| 311 | android:layout_height="wrap_content" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 312 | android:layout_centerVertical="true" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 313 | android:layout_toEndOf="@+id/system_startOnBoot_image" |
| 314 | android:layout_toStartOf="@+id/settings_startup" |
| 315 | android:orientation="vertical" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 316 | android:paddingLeft="16dp" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 317 | android:paddingRight="16dp"> |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 318 | |
| 319 | <TextView |
| 320 | style="@style/ListPrimary" |
| 321 | android:layout_width="match_parent" |
| 322 | android:layout_height="wrap_content" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 323 | android:ellipsize="end" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 324 | android:lines="1" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 325 | 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 Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 338 | 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 Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 358 | android:orientation="vertical" |
| 359 | android:padding="8dp"> |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 360 | |
| 361 | <TextView |
| 362 | style="@style/ListPrimary" |
| 363 | android:layout_width="match_parent" |
| 364 | android:layout_height="wrap_content" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 365 | android:ellipsize="end" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 366 | android:lines="1" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 367 | 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 Wittemberg | 77cf600 | 2016-11-09 16:53:31 -0500 | [diff] [blame] | 379 | </ScrollView> |