Sébastien Blin | ab53ada | 2019-01-02 17:23:00 -0500 | [diff] [blame^] | 1 | <?xml version="1.0" encoding="utf-8"?><!-- Copyright (C) 2016-2019 Savoir-faire Linux Inc. |
Thibault Wittemberg | 77cf600 | 2016-11-09 16:53:31 -0500 | [diff] [blame] | 2 | |
| 3 | Author: Thibault Wittemberg <thibault.wittemberg@savoirfairelinux.com> |
Adrien Béraud | 746de67 | 2018-09-18 01:18:23 -0400 | [diff] [blame] | 4 | Author: Adrien Béraud <adrien.beraud@savoirfairelinux.com> |
Thibault Wittemberg | 77cf600 | 2016-11-09 16:53:31 -0500 | [diff] [blame] | 5 | |
| 6 | This program is free software; you can redistribute it and/or modify |
| 7 | it under the terms of the GNU General Public License as published by |
| 8 | the Free Software Foundation; either version 3 of the License, or |
| 9 | (at your option) any later version. |
| 10 | |
| 11 | This program is distributed in the hope that it will be useful, |
| 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | GNU General Public License for more details. |
| 15 | |
| 16 | You should have received a copy of the GNU General Public License |
| 17 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 18 | --> |
| 19 | |
| 20 | <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 21 | xmlns:app="http://schemas.android.com/apk/res-auto" |
Thibault Wittemberg | 77cf600 | 2016-11-09 16:53:31 -0500 | [diff] [blame] | 22 | android:layout_width="match_parent" |
| 23 | android:layout_height="match_parent"> |
| 24 | |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 25 | <RelativeLayout |
Thibault Wittemberg | 77cf600 | 2016-11-09 16:53:31 -0500 | [diff] [blame] | 26 | android:layout_width="match_parent" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 27 | android:layout_height="wrap_content"> |
Thibault Wittemberg | 77cf600 | 2016-11-09 16:53:31 -0500 | [diff] [blame] | 28 | |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 29 | <cx.ring.views.BoundedScrollView |
Thibault Wittemberg | 77cf600 | 2016-11-09 16:53:31 -0500 | [diff] [blame] | 30 | android:layout_width="match_parent" |
| 31 | android:layout_height="wrap_content" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 32 | android:layout_centerInParent="true" |
| 33 | app:bounded_width="600dp"> |
Thibault Wittemberg | 77cf600 | 2016-11-09 16:53:31 -0500 | [diff] [blame] | 34 | |
Adrien Béraud | 2693eca | 2018-01-24 16:38:48 -0500 | [diff] [blame] | 35 | <LinearLayout |
Thibault Wittemberg | 77cf600 | 2016-11-09 16:53:31 -0500 | [diff] [blame] | 36 | android:layout_width="match_parent" |
| 37 | android:layout_height="wrap_content" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 38 | android:orientation="vertical" |
Adrien Béraud | 954d7a5 | 2018-03-02 12:06:34 -0500 | [diff] [blame] | 39 | android:padding="@dimen/padding_small"> |
Thibault Wittemberg | 77cf600 | 2016-11-09 16:53:31 -0500 | [diff] [blame] | 40 | |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 41 | <!-- Network settings --> |
Thibault Wittemberg | 77cf600 | 2016-11-09 16:53:31 -0500 | [diff] [blame] | 42 | |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 43 | <TextView |
| 44 | android:layout_width="wrap_content" |
| 45 | android:layout_height="wrap_content" |
| 46 | android:padding="8dp" |
| 47 | android:text="@string/pref_category_network" |
| 48 | android:textColor="@color/color_primary_dark" |
| 49 | android:textSize="18sp" /> |
Thibault Wittemberg | 77cf600 | 2016-11-09 16:53:31 -0500 | [diff] [blame] | 50 | |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 51 | <RelativeLayout |
| 52 | android:layout_width="match_parent" |
| 53 | android:layout_height="wrap_content" |
| 54 | android:orientation="horizontal" |
| 55 | android:padding="8dp"> |
| 56 | |
Adrien Béraud | 2693eca | 2018-01-24 16:38:48 -0500 | [diff] [blame] | 57 | |
| 58 | <ImageView |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 59 | android:id="@+id/network_image" |
| 60 | android:layout_width="wrap_content" |
| 61 | android:layout_height="wrap_content" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 62 | android:layout_alignParentStart="true" |
Adrien Béraud | 2693eca | 2018-01-24 16:38:48 -0500 | [diff] [blame] | 63 | android:layout_centerVertical="true" |
| 64 | android:layout_gravity="start" |
| 65 | android:contentDescription="@string/pref_mobileData_summary" |
Pierre Duchemin | 932b96d | 2018-05-10 09:36:52 -0400 | [diff] [blame] | 66 | app:srcCompat="@drawable/baseline_perm_data_setting_24px" /> |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 67 | |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 68 | |
| 69 | <LinearLayout |
| 70 | android:layout_width="wrap_content" |
| 71 | android:layout_height="wrap_content" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 72 | android:layout_centerVertical="true" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 73 | android:layout_toStartOf="@+id/settings_mobile_data" |
Adrien Béraud | 746de67 | 2018-09-18 01:18:23 -0400 | [diff] [blame] | 74 | android:layout_toEndOf="@+id/network_image" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 75 | android:orientation="vertical" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 76 | android:paddingLeft="16dp" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 77 | android:paddingRight="16dp"> |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 78 | |
| 79 | <TextView |
| 80 | style="@style/ListPrimary" |
| 81 | android:layout_width="match_parent" |
| 82 | android:layout_height="wrap_content" |
| 83 | android:lines="1" |
| 84 | android:text="@string/pref_mobileData_title" /> |
| 85 | |
| 86 | <TextView |
| 87 | android:layout_width="match_parent" |
| 88 | android:layout_height="wrap_content" |
| 89 | android:text="@string/pref_mobileData_summary" /> |
| 90 | |
| 91 | </LinearLayout> |
| 92 | |
| 93 | <Switch |
| 94 | android:id="@+id/settings_mobile_data" |
| 95 | android:layout_width="wrap_content" |
| 96 | android:layout_height="wrap_content" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 97 | android:layout_alignParentEnd="true" |
| 98 | android:checked="false" /> |
| 99 | |
| 100 | </RelativeLayout> |
| 101 | |
Adrien Béraud | 2693eca | 2018-01-24 16:38:48 -0500 | [diff] [blame] | 102 | |
| 103 | <RelativeLayout |
Adrien Béraud | 746de67 | 2018-09-18 01:18:23 -0400 | [diff] [blame] | 104 | android:id="@+id/settings_push_notifications_layout" |
Adrien Béraud | 2693eca | 2018-01-24 16:38:48 -0500 | [diff] [blame] | 105 | android:layout_width="match_parent" |
| 106 | android:layout_height="wrap_content" |
| 107 | android:orientation="horizontal" |
Adrien Béraud | 746de67 | 2018-09-18 01:18:23 -0400 | [diff] [blame] | 108 | android:padding="8dp"> |
Adrien Béraud | 2693eca | 2018-01-24 16:38:48 -0500 | [diff] [blame] | 109 | |
| 110 | <ImageView |
| 111 | android:id="@+id/push_image" |
| 112 | android:layout_width="wrap_content" |
| 113 | android:layout_height="wrap_content" |
| 114 | android:layout_alignParentStart="true" |
| 115 | android:layout_centerVertical="true" |
| 116 | android:layout_gravity="start" |
| 117 | android:contentDescription="@string/pref_pushNotifications_summary" |
| 118 | app:srcCompat="@drawable/ic_priority_high_black_24dp" /> |
| 119 | |
| 120 | <LinearLayout |
| 121 | android:layout_width="wrap_content" |
| 122 | android:layout_height="wrap_content" |
| 123 | android:layout_centerVertical="true" |
Adrien Béraud | 2693eca | 2018-01-24 16:38:48 -0500 | [diff] [blame] | 124 | android:layout_toStartOf="@+id/settings_push_notifications" |
Adrien Béraud | 746de67 | 2018-09-18 01:18:23 -0400 | [diff] [blame] | 125 | android:layout_toEndOf="@+id/push_image" |
Adrien Béraud | 2693eca | 2018-01-24 16:38:48 -0500 | [diff] [blame] | 126 | android:orientation="vertical" |
| 127 | android:paddingLeft="16dp" |
| 128 | android:paddingRight="16dp"> |
| 129 | |
| 130 | <TextView |
| 131 | style="@style/ListPrimary" |
| 132 | android:layout_width="match_parent" |
| 133 | android:layout_height="wrap_content" |
| 134 | android:lines="1" |
| 135 | android:text="@string/pref_pushNotifications_title" /> |
| 136 | |
| 137 | <TextView |
| 138 | android:layout_width="match_parent" |
| 139 | android:layout_height="wrap_content" |
| 140 | android:text="@string/pref_pushNotifications_summary" /> |
| 141 | |
| 142 | </LinearLayout> |
| 143 | |
| 144 | <Switch |
| 145 | android:id="@+id/settings_push_notifications" |
| 146 | android:layout_width="wrap_content" |
| 147 | android:layout_height="wrap_content" |
| 148 | android:layout_alignParentEnd="true" |
| 149 | android:checked="false" /> |
| 150 | |
| 151 | </RelativeLayout> |
| 152 | |
| 153 | |
Adrien Béraud | 1e84875 | 2018-08-26 15:30:43 -0400 | [diff] [blame] | 154 | <RelativeLayout |
Adrien Béraud | 746de67 | 2018-09-18 01:18:23 -0400 | [diff] [blame] | 155 | android:id="@+id/settings_hd_layout" |
Adrien Béraud | 1e84875 | 2018-08-26 15:30:43 -0400 | [diff] [blame] | 156 | android:layout_width="match_parent" |
| 157 | android:layout_height="wrap_content" |
| 158 | android:orientation="horizontal" |
Adrien Béraud | 746de67 | 2018-09-18 01:18:23 -0400 | [diff] [blame] | 159 | android:padding="8dp"> |
Adrien Béraud | 1e84875 | 2018-08-26 15:30:43 -0400 | [diff] [blame] | 160 | |
| 161 | <ImageView |
| 162 | android:id="@+id/hd_image" |
| 163 | android:layout_width="wrap_content" |
| 164 | android:layout_height="wrap_content" |
| 165 | android:layout_alignParentStart="true" |
| 166 | android:layout_centerVertical="true" |
| 167 | android:layout_gravity="start" |
| 168 | android:contentDescription="@string/pref_hd_summary" |
Adrien Béraud | 746de67 | 2018-09-18 01:18:23 -0400 | [diff] [blame] | 169 | android:tint="@color/black" |
| 170 | app:srcCompat="@drawable/ic_videocam_white" /> |
Adrien Béraud | 1e84875 | 2018-08-26 15:30:43 -0400 | [diff] [blame] | 171 | |
| 172 | |
| 173 | <LinearLayout |
| 174 | android:layout_width="wrap_content" |
| 175 | android:layout_height="wrap_content" |
| 176 | android:layout_centerVertical="true" |
Adrien Béraud | 1e84875 | 2018-08-26 15:30:43 -0400 | [diff] [blame] | 177 | android:layout_toStartOf="@+id/settings_hd" |
Adrien Béraud | 746de67 | 2018-09-18 01:18:23 -0400 | [diff] [blame] | 178 | android:layout_toEndOf="@+id/hd_image" |
Adrien Béraud | 1e84875 | 2018-08-26 15:30:43 -0400 | [diff] [blame] | 179 | android:orientation="horizontal" |
| 180 | android:paddingLeft="16dp" |
| 181 | android:paddingRight="16dp"> |
| 182 | |
| 183 | <TextView |
| 184 | style="@style/ListPrimary" |
| 185 | android:layout_width="0dp" |
| 186 | android:layout_height="wrap_content" |
| 187 | android:layout_weight="1" |
| 188 | android:maxLines="3" |
| 189 | android:singleLine="false" |
| 190 | android:text="@string/pref_hd_summary" /> |
| 191 | |
| 192 | <TextView |
| 193 | android:layout_width="wrap_content" |
| 194 | android:layout_height="wrap_content" |
| 195 | android:layout_gravity="start" |
Adrien Béraud | 746de67 | 2018-09-18 01:18:23 -0400 | [diff] [blame] | 196 | android:layout_margin="4dp" |
Adrien Béraud | 1e84875 | 2018-08-26 15:30:43 -0400 | [diff] [blame] | 197 | android:background="@drawable/hd_button_background" |
Adrien Béraud | 746de67 | 2018-09-18 01:18:23 -0400 | [diff] [blame] | 198 | android:paddingStart="8dp" |
Adrien Béraud | 1e84875 | 2018-08-26 15:30:43 -0400 | [diff] [blame] | 199 | android:paddingTop="3dp" |
Adrien Béraud | 746de67 | 2018-09-18 01:18:23 -0400 | [diff] [blame] | 200 | android:paddingEnd="8dp" |
Adrien Béraud | 1e84875 | 2018-08-26 15:30:43 -0400 | [diff] [blame] | 201 | android:paddingBottom="4dp" |
Adrien Béraud | 746de67 | 2018-09-18 01:18:23 -0400 | [diff] [blame] | 202 | android:text="@string/label_hd_720p" |
Adrien Béraud | 1e84875 | 2018-08-26 15:30:43 -0400 | [diff] [blame] | 203 | android:textColor="@color/amber_A400" |
Adrien Béraud | 746de67 | 2018-09-18 01:18:23 -0400 | [diff] [blame] | 204 | android:textSize="14sp" |
| 205 | android:textStyle="bold" /> |
Adrien Béraud | 1e84875 | 2018-08-26 15:30:43 -0400 | [diff] [blame] | 206 | </LinearLayout> |
| 207 | |
| 208 | <Switch |
| 209 | android:id="@+id/settings_hd" |
| 210 | android:layout_width="wrap_content" |
| 211 | android:layout_height="wrap_content" |
| 212 | android:layout_alignParentEnd="true" |
| 213 | android:checked="false" /> |
| 214 | |
| 215 | </RelativeLayout> |
| 216 | |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 217 | <!-- Contacts settings --> |
| 218 | |
| 219 | <TextView |
| 220 | android:layout_width="wrap_content" |
| 221 | android:layout_height="wrap_content" |
| 222 | android:padding="8dp" |
| 223 | android:text="@string/pref_category_contacts" |
| 224 | android:textColor="@color/color_primary_dark" |
| 225 | android:textSize="18sp" /> |
| 226 | |
| 227 | <RelativeLayout |
| 228 | android:layout_width="match_parent" |
| 229 | android:layout_height="wrap_content" |
| 230 | android:orientation="horizontal" |
| 231 | android:padding="8dp" |
| 232 | android:weightSum="1"> |
| 233 | |
| 234 | <LinearLayout |
| 235 | android:id="@+id/contacts_image" |
| 236 | android:layout_width="wrap_content" |
| 237 | android:layout_height="wrap_content" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 238 | android:layout_alignParentStart="true" |
| 239 | android:layout_centerVertical="true"> |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 240 | |
| 241 | <ImageView |
| 242 | android:layout_width="wrap_content" |
| 243 | android:layout_height="wrap_content" |
| 244 | android:layout_gravity="start" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 245 | android:contentDescription="@string/pref_systemContacts_summary" |
| 246 | app:srcCompat="@drawable/ic_group_black" /> |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 247 | |
| 248 | </LinearLayout> |
| 249 | |
| 250 | <LinearLayout |
| 251 | android:layout_width="wrap_content" |
| 252 | android:layout_height="wrap_content" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 253 | android:layout_centerVertical="true" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 254 | android:layout_toStartOf="@+id/settings_contacts" |
Adrien Béraud | 746de67 | 2018-09-18 01:18:23 -0400 | [diff] [blame] | 255 | android:layout_toEndOf="@+id/contacts_image" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 256 | android:orientation="vertical" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 257 | android:paddingLeft="16dp" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 258 | android:paddingRight="16dp"> |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 259 | |
| 260 | <TextView |
| 261 | style="@style/ListPrimary" |
| 262 | android:layout_width="match_parent" |
| 263 | android:layout_height="wrap_content" |
| 264 | android:lines="1" |
| 265 | android:text="@string/pref_systemContacts_title" /> |
| 266 | |
| 267 | <TextView |
| 268 | android:layout_width="match_parent" |
| 269 | android:layout_height="wrap_content" |
| 270 | android:text="@string/pref_systemContacts_summary" /> |
| 271 | |
| 272 | </LinearLayout> |
| 273 | |
| 274 | <Switch |
| 275 | android:id="@+id/settings_contacts" |
| 276 | android:layout_width="wrap_content" |
| 277 | android:layout_height="wrap_content" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 278 | android:layout_alignParentEnd="true" |
| 279 | android:checked="false" /> |
| 280 | |
| 281 | </RelativeLayout> |
| 282 | |
| 283 | <!-- System settings --> |
| 284 | |
| 285 | <TextView |
| 286 | android:layout_width="wrap_content" |
| 287 | android:layout_height="wrap_content" |
| 288 | android:padding="8dp" |
| 289 | android:text="@string/pref_category_system" |
| 290 | android:textColor="@color/color_primary_dark" |
| 291 | android:textSize="18sp" /> |
| 292 | |
| 293 | <RelativeLayout |
| 294 | android:layout_width="match_parent" |
| 295 | android:layout_height="wrap_content" |
| 296 | android:orientation="horizontal" |
| 297 | android:padding="8dp" |
| 298 | android:weightSum="1"> |
| 299 | |
| 300 | <LinearLayout |
| 301 | android:id="@+id/system_dialer_image" |
| 302 | android:layout_width="wrap_content" |
| 303 | android:layout_height="wrap_content" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 304 | android:layout_alignParentStart="true" |
| 305 | android:layout_centerVertical="true"> |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 306 | |
| 307 | <ImageView |
| 308 | android:layout_width="wrap_content" |
| 309 | android:layout_height="wrap_content" |
| 310 | android:layout_gravity="start" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 311 | android:contentDescription="@string/pref_systemDialer_summary" |
| 312 | app:srcCompat="@drawable/ic_dialpad_black" /> |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 313 | |
| 314 | </LinearLayout> |
| 315 | |
| 316 | <LinearLayout |
| 317 | android:layout_width="wrap_content" |
| 318 | android:layout_height="wrap_content" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 319 | android:layout_centerVertical="true" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 320 | android:layout_toStartOf="@+id/settings_place_call" |
Adrien Béraud | 746de67 | 2018-09-18 01:18:23 -0400 | [diff] [blame] | 321 | android:layout_toEndOf="@+id/system_dialer_image" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 322 | android:orientation="vertical" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 323 | android:paddingLeft="16dp" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 324 | android:paddingRight="16dp"> |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 325 | |
| 326 | <TextView |
| 327 | style="@style/ListPrimary" |
| 328 | android:layout_width="match_parent" |
| 329 | android:layout_height="wrap_content" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 330 | android:ellipsize="end" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 331 | android:lines="1" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 332 | android:text="@string/pref_systemDialer_title" /> |
| 333 | |
| 334 | <TextView |
| 335 | android:layout_width="match_parent" |
| 336 | android:layout_height="wrap_content" |
| 337 | android:text="@string/pref_systemDialer_summary" /> |
| 338 | |
| 339 | </LinearLayout> |
| 340 | |
| 341 | <Switch |
| 342 | android:id="@+id/settings_place_call" |
| 343 | android:layout_width="wrap_content" |
| 344 | android:layout_height="wrap_content" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 345 | android:layout_alignParentEnd="true" |
| 346 | android:checked="false" /> |
| 347 | |
| 348 | </RelativeLayout> |
| 349 | |
| 350 | <RelativeLayout |
| 351 | android:layout_width="match_parent" |
| 352 | android:layout_height="wrap_content" |
| 353 | android:orientation="horizontal" |
| 354 | android:padding="8dp" |
| 355 | android:weightSum="1"> |
| 356 | |
| 357 | <LinearLayout |
| 358 | android:id="@+id/system_startOnBoot_image" |
| 359 | android:layout_width="wrap_content" |
| 360 | android:layout_height="wrap_content" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 361 | android:layout_alignParentStart="true" |
| 362 | android:layout_centerVertical="true"> |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 363 | |
| 364 | |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 365 | <ImageView |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 366 | android:layout_width="wrap_content" |
| 367 | android:layout_height="wrap_content" |
| 368 | android:layout_gravity="start" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 369 | android:contentDescription="@string/pref_startOnBoot_summary" |
| 370 | app:srcCompat="@drawable/ic_android_black" /> |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 371 | |
| 372 | </LinearLayout> |
| 373 | |
| 374 | <LinearLayout |
| 375 | android:layout_width="wrap_content" |
| 376 | android:layout_height="wrap_content" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 377 | android:layout_centerVertical="true" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 378 | android:layout_toStartOf="@+id/settings_startup" |
Adrien Béraud | 746de67 | 2018-09-18 01:18:23 -0400 | [diff] [blame] | 379 | android:layout_toEndOf="@+id/system_startOnBoot_image" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 380 | android:orientation="vertical" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 381 | android:paddingLeft="16dp" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 382 | android:paddingRight="16dp"> |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 383 | |
| 384 | <TextView |
| 385 | style="@style/ListPrimary" |
| 386 | android:layout_width="match_parent" |
| 387 | android:layout_height="wrap_content" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 388 | android:ellipsize="end" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 389 | android:lines="1" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 390 | android:text="@string/pref_startOnBoot_title" /> |
| 391 | |
| 392 | <TextView |
| 393 | android:layout_width="match_parent" |
| 394 | android:layout_height="wrap_content" |
| 395 | android:text="@string/pref_startOnBoot_summary" /> |
| 396 | |
| 397 | </LinearLayout> |
| 398 | |
| 399 | <Switch |
| 400 | android:id="@+id/settings_startup" |
| 401 | android:layout_width="wrap_content" |
| 402 | android:layout_height="wrap_content" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 403 | android:layout_alignParentEnd="true" |
| 404 | android:checked="false" /> |
| 405 | |
| 406 | </RelativeLayout> |
| 407 | |
| 408 | <!-- Privacy --> |
| 409 | |
Sébastien Blin | de52fa2 | 2018-12-06 13:35:19 -0500 | [diff] [blame] | 410 | <RelativeLayout |
| 411 | android:layout_width="match_parent" |
| 412 | android:layout_height="match_parent" |
| 413 | android:orientation="horizontal" |
| 414 | android:padding="8dp" |
| 415 | android:weightSum="1"> |
| 416 | |
| 417 | <LinearLayout |
| 418 | android:id="@+id/system_persistNotification_image" |
| 419 | android:layout_width="wrap_content" |
| 420 | android:layout_height="wrap_content" |
| 421 | android:layout_alignParentStart="true" |
| 422 | android:layout_centerVertical="true"> |
| 423 | |
| 424 | |
| 425 | <ImageView |
| 426 | android:layout_width="wrap_content" |
| 427 | android:layout_height="wrap_content" |
| 428 | android:layout_gravity="start" |
| 429 | android:contentDescription="@string/pref_persistNotification_summary" |
| 430 | app:srcCompat="@drawable/baseline_notification_important_black_24" /> |
| 431 | |
| 432 | </LinearLayout> |
| 433 | |
| 434 | <LinearLayout |
| 435 | android:layout_width="wrap_content" |
| 436 | android:layout_height="wrap_content" |
| 437 | android:layout_centerVertical="true" |
| 438 | android:layout_toStartOf="@+id/settings_persistNotification" |
| 439 | android:layout_toEndOf="@+id/system_persistNotification_image" |
| 440 | android:orientation="vertical" |
| 441 | android:paddingLeft="16dp" |
| 442 | android:paddingRight="16dp"> |
| 443 | |
| 444 | <TextView |
| 445 | style="@style/ListPrimary" |
| 446 | android:layout_width="match_parent" |
| 447 | android:layout_height="wrap_content" |
| 448 | android:ellipsize="end" |
| 449 | android:lines="1" |
| 450 | android:text="@string/pref_persistNotification_title" /> |
| 451 | |
| 452 | <TextView |
| 453 | android:layout_width="match_parent" |
| 454 | android:layout_height="wrap_content" |
| 455 | android:text="@string/pref_persistNotification_summary" /> |
| 456 | |
| 457 | </LinearLayout> |
| 458 | |
| 459 | <Switch |
| 460 | android:id="@+id/settings_persistNotification" |
| 461 | android:layout_width="wrap_content" |
| 462 | android:layout_height="wrap_content" |
| 463 | android:layout_alignParentEnd="true" |
| 464 | android:checked="false" /> |
| 465 | |
| 466 | </RelativeLayout> |
| 467 | |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 468 | <TextView |
| 469 | android:layout_width="wrap_content" |
| 470 | android:layout_height="wrap_content" |
| 471 | android:padding="8dp" |
| 472 | android:text="@string/pref_category_privacy" |
| 473 | android:textColor="@color/color_primary_dark" |
| 474 | android:textSize="18sp" /> |
| 475 | |
| 476 | <LinearLayout |
| 477 | android:id="@+id/settings_clear_history" |
| 478 | android:layout_width="match_parent" |
| 479 | android:layout_height="wrap_content" |
| 480 | android:background="?attr/selectableItemBackground" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 481 | android:orientation="vertical" |
| 482 | android:padding="8dp"> |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 483 | |
| 484 | <TextView |
| 485 | style="@style/ListPrimary" |
| 486 | android:layout_width="match_parent" |
| 487 | android:layout_height="wrap_content" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 488 | android:ellipsize="end" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 489 | android:lines="1" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 490 | android:text="@string/pref_clearHistory_title" /> |
| 491 | |
| 492 | <TextView |
| 493 | android:layout_width="match_parent" |
| 494 | android:layout_height="wrap_content" |
| 495 | android:text="@string/pref_clearHistory_summary" /> |
| 496 | |
| 497 | </LinearLayout> |
| 498 | |
| 499 | </LinearLayout> |
| 500 | </cx.ring.views.BoundedScrollView> |
| 501 | </RelativeLayout> |
Thibault Wittemberg | 77cf600 | 2016-11-09 16:53:31 -0500 | [diff] [blame] | 502 | </ScrollView> |