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 | |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 34 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
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" |
| 38 | android:padding="@dimen/padding_medium"> |
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 | |
| 56 | <LinearLayout |
| 57 | android:id="@+id/network_image" |
| 58 | android:layout_width="wrap_content" |
| 59 | android:layout_height="wrap_content" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 60 | android:layout_alignParentStart="true" |
| 61 | android:layout_centerVertical="true"> |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 62 | |
| 63 | <ImageView |
| 64 | android:layout_width="wrap_content" |
| 65 | android:layout_height="wrap_content" |
| 66 | android:layout_gravity="start" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 67 | android:contentDescription="@string/pref_mobileData_summary" |
| 68 | android:src="@drawable/ic_perm_data_setting_black_24dp" /> |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 69 | |
| 70 | </LinearLayout> |
| 71 | |
| 72 | <LinearLayout |
| 73 | android:layout_width="wrap_content" |
| 74 | android:layout_height="wrap_content" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 75 | android:layout_centerVertical="true" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 76 | android:layout_toEndOf="@+id/network_image" |
| 77 | android:layout_toStartOf="@+id/settings_mobile_data" |
| 78 | android:orientation="vertical" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 79 | android:paddingLeft="16dp" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 80 | android:paddingRight="16dp"> |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 81 | |
| 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 Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 100 | 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 Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 126 | android:layout_alignParentStart="true" |
| 127 | android:layout_centerVertical="true"> |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 128 | |
| 129 | <ImageView |
| 130 | android:layout_width="wrap_content" |
| 131 | android:layout_height="wrap_content" |
| 132 | android:layout_gravity="start" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 133 | android:contentDescription="@string/pref_systemContacts_summary" |
| 134 | app:srcCompat="@drawable/ic_group_black" /> |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 135 | |
| 136 | </LinearLayout> |
| 137 | |
| 138 | <LinearLayout |
| 139 | android:layout_width="wrap_content" |
| 140 | android:layout_height="wrap_content" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 141 | android:layout_centerVertical="true" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 142 | android:layout_toEndOf="@+id/contacts_image" |
| 143 | android:layout_toStartOf="@+id/settings_contacts" |
| 144 | android:orientation="vertical" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 145 | android:paddingLeft="16dp" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 146 | android:paddingRight="16dp"> |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 147 | |
| 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 Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 166 | 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 Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 192 | android:layout_alignParentStart="true" |
| 193 | android:layout_centerVertical="true"> |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 194 | |
| 195 | <ImageView |
| 196 | android:layout_width="wrap_content" |
| 197 | android:layout_height="wrap_content" |
| 198 | android:layout_gravity="start" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 199 | android:contentDescription="@string/pref_systemDialer_summary" |
| 200 | app:srcCompat="@drawable/ic_dialpad_black" /> |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 201 | |
| 202 | </LinearLayout> |
| 203 | |
| 204 | <LinearLayout |
| 205 | android:layout_width="wrap_content" |
| 206 | android:layout_height="wrap_content" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 207 | android:layout_centerVertical="true" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 208 | android:layout_toEndOf="@+id/system_dialer_image" |
| 209 | android:layout_toStartOf="@+id/settings_place_call" |
| 210 | android:orientation="vertical" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 211 | android:paddingLeft="16dp" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 212 | android:paddingRight="16dp"> |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 213 | |
| 214 | <TextView |
| 215 | style="@style/ListPrimary" |
| 216 | android:layout_width="match_parent" |
| 217 | android:layout_height="wrap_content" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 218 | android:ellipsize="end" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 219 | android:lines="1" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 220 | 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 Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 233 | 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 Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 249 | android:layout_alignParentStart="true" |
| 250 | android:layout_centerVertical="true"> |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 251 | |
| 252 | |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 253 | <ImageView |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 254 | android:layout_width="wrap_content" |
| 255 | android:layout_height="wrap_content" |
| 256 | android:layout_gravity="start" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 257 | android:contentDescription="@string/pref_startOnBoot_summary" |
| 258 | app:srcCompat="@drawable/ic_android_black" /> |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 259 | |
| 260 | </LinearLayout> |
| 261 | |
| 262 | <LinearLayout |
| 263 | android:layout_width="wrap_content" |
| 264 | android:layout_height="wrap_content" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 265 | android:layout_centerVertical="true" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 266 | android:layout_toEndOf="@+id/system_startOnBoot_image" |
| 267 | android:layout_toStartOf="@+id/settings_startup" |
| 268 | android:orientation="vertical" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 269 | android:paddingLeft="16dp" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 270 | android:paddingRight="16dp"> |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 271 | |
| 272 | <TextView |
| 273 | style="@style/ListPrimary" |
| 274 | android:layout_width="match_parent" |
| 275 | android:layout_height="wrap_content" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 276 | android:ellipsize="end" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 277 | android:lines="1" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 278 | 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 Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 291 | 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 Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 311 | android:orientation="vertical" |
| 312 | android:padding="8dp"> |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 313 | |
| 314 | <TextView |
| 315 | style="@style/ListPrimary" |
| 316 | android:layout_width="match_parent" |
| 317 | android:layout_height="wrap_content" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 318 | android:ellipsize="end" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 319 | android:lines="1" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 320 | 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 Wittemberg | 77cf600 | 2016-11-09 16:53:31 -0500 | [diff] [blame] | 332 | </ScrollView> |