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 | --> |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 19 | <RelativeLayout 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 | |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 24 | <cx.ring.views.BoundedScrollView |
Thibault Wittemberg | 77cf600 | 2016-11-09 16:53:31 -0500 | [diff] [blame] | 25 | android:layout_width="match_parent" |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 26 | android:layout_height="wrap_content" |
| 27 | android:layout_centerHorizontal="true" |
| 28 | app:bounded_width="600dp"> |
Thibault Wittemberg | 77cf600 | 2016-11-09 16:53:31 -0500 | [diff] [blame] | 29 | |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 30 | <LinearLayout |
Thibault Wittemberg | 77cf600 | 2016-11-09 16:53:31 -0500 | [diff] [blame] | 31 | android:layout_width="match_parent" |
| 32 | android:layout_height="wrap_content" |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 33 | android:orientation="vertical" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 34 | android:paddingTop="8dp" |
| 35 | android:paddingBottom="8dp"> |
| 36 | |
| 37 | <RelativeLayout |
| 38 | android:id="@+id/settings_dark_theme_layout" |
| 39 | android:layout_width="match_parent" |
| 40 | android:layout_height="wrap_content" |
| 41 | android:orientation="horizontal" |
| 42 | android:padding="16dp"> |
| 43 | |
| 44 | <ImageView |
| 45 | android:id="@+id/theme_image" |
| 46 | android:layout_width="wrap_content" |
| 47 | android:layout_height="wrap_content" |
| 48 | android:layout_alignParentStart="true" |
| 49 | android:layout_centerVertical="true" |
| 50 | android:layout_gravity="start" |
| 51 | android:contentDescription="@string/pref_darkTheme_summary" |
| 52 | android:src="@drawable/baseline_invert_colors_24" |
| 53 | android:layout_marginEnd="32dp"/> |
| 54 | |
| 55 | <LinearLayout |
| 56 | android:layout_width="wrap_content" |
| 57 | android:layout_height="wrap_content" |
| 58 | android:layout_centerVertical="true" |
| 59 | android:layout_toStartOf="@id/settings_dark_theme" |
| 60 | android:layout_toEndOf="@id/theme_image" |
| 61 | android:orientation="vertical"> |
| 62 | |
| 63 | <TextView |
| 64 | style="@style/ListPrimary" |
| 65 | android:layout_width="match_parent" |
| 66 | android:layout_height="wrap_content" |
| 67 | android:lines="1" |
| 68 | android:text="@string/pref_darkTheme_title" /> |
| 69 | |
| 70 | <TextView |
| 71 | style="@style/ListSecondary" |
| 72 | android:layout_width="match_parent" |
| 73 | android:layout_height="wrap_content" |
| 74 | android:text="@string/pref_darkTheme_summary" /> |
| 75 | |
| 76 | </LinearLayout> |
| 77 | |
| 78 | <Switch |
| 79 | android:id="@+id/settings_dark_theme" |
| 80 | android:layout_width="wrap_content" |
| 81 | android:layout_height="wrap_content" |
| 82 | android:layout_alignParentEnd="true" |
| 83 | android:checked="false" |
| 84 | android:layout_marginStart="16dp"/> |
| 85 | |
| 86 | </RelativeLayout> |
| 87 | |
Thibault Wittemberg | 77cf600 | 2016-11-09 16:53:31 -0500 | [diff] [blame] | 88 | |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 89 | <!-- Network settings --> |
| 90 | |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 91 | <RelativeLayout |
Adrien Béraud | 4d6c068 | 2019-08-24 21:47:19 -0400 | [diff] [blame] | 92 | android:id="@+id/settings_video_layout" |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 93 | android:layout_width="match_parent" |
| 94 | android:layout_height="wrap_content" |
| 95 | android:orientation="horizontal" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 96 | android:padding="16dp"> |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 97 | |
| 98 | <ImageView |
| 99 | android:id="@+id/hwenc_image" |
| 100 | android:layout_width="wrap_content" |
| 101 | android:layout_height="wrap_content" |
| 102 | android:layout_alignParentStart="true" |
| 103 | android:layout_centerVertical="true" |
| 104 | android:layout_gravity="start" |
Adrien Béraud | 7ebfee9 | 2019-01-27 18:22:24 -0500 | [diff] [blame] | 105 | android:contentDescription="@string/pref_hwEncode_summary" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 106 | app:srcCompat="@drawable/baseline_memory_24" |
| 107 | android:layout_marginEnd="32dp"/> |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 108 | |
| 109 | <LinearLayout |
| 110 | android:layout_width="wrap_content" |
| 111 | android:layout_height="wrap_content" |
| 112 | android:layout_centerVertical="true" |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 113 | android:layout_toEndOf="@id/hwenc_image" |
| 114 | android:orientation="vertical" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 115 | android:layout_marginEnd="16dp"> |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 116 | |
| 117 | <TextView |
| 118 | style="@style/ListPrimary" |
| 119 | android:layout_width="match_parent" |
| 120 | android:layout_height="0dp" |
| 121 | android:layout_weight="1" |
| 122 | android:maxLines="3" |
| 123 | android:singleLine="false" |
Adrien Béraud | 4d6c068 | 2019-08-24 21:47:19 -0400 | [diff] [blame] | 124 | android:text="@string/pref_video_advanced_title" /> |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 125 | |
| 126 | <TextView |
| 127 | android:layout_width="match_parent" |
| 128 | android:layout_height="wrap_content" |
Adrien Béraud | 4d6c068 | 2019-08-24 21:47:19 -0400 | [diff] [blame] | 129 | android:text="@string/pref_video_advanced_summary" /> |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 130 | |
| 131 | </LinearLayout> |
| 132 | |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 133 | </RelativeLayout> |
| 134 | |
| 135 | <!-- Contacts settings --> |
| 136 | |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 137 | <!-- |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 138 | <TextView |
| 139 | android:layout_width="wrap_content" |
| 140 | android:layout_height="wrap_content" |
| 141 | android:padding="8dp" |
| 142 | android:text="@string/pref_category_contacts" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 143 | android:textColor="@color/textColorAccent" |
| 144 | android:textSize="18sp" |
| 145 | android:layout_marginStart="64dp" /> |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 146 | |
| 147 | <RelativeLayout |
| 148 | android:layout_width="match_parent" |
| 149 | android:layout_height="wrap_content" |
| 150 | android:orientation="horizontal" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 151 | android:padding="16dp"> |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 152 | |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 153 | <ImageView |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 154 | android:id="@+id/contacts_image" |
| 155 | android:layout_width="wrap_content" |
| 156 | android:layout_height="wrap_content" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 157 | android:layout_gravity="start" |
| 158 | android:contentDescription="@string/pref_systemContacts_summary" |
| 159 | app:srcCompat="@drawable/baseline_group_24" |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 160 | android:layout_alignParentStart="true" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 161 | android:layout_centerVertical="true" |
| 162 | android:layout_marginEnd="32dp"/> |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 163 | |
| 164 | <LinearLayout |
| 165 | android:layout_width="wrap_content" |
| 166 | android:layout_height="wrap_content" |
| 167 | android:layout_centerVertical="true" |
| 168 | android:layout_toStartOf="@+id/settings_contacts" |
| 169 | android:layout_toEndOf="@+id/contacts_image" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 170 | android:orientation="vertical"> |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 171 | |
| 172 | <TextView |
| 173 | style="@style/ListPrimary" |
| 174 | android:layout_width="match_parent" |
| 175 | android:layout_height="wrap_content" |
| 176 | android:lines="1" |
| 177 | android:text="@string/pref_systemContacts_title" /> |
| 178 | |
| 179 | <TextView |
| 180 | android:layout_width="match_parent" |
| 181 | android:layout_height="wrap_content" |
| 182 | android:text="@string/pref_systemContacts_summary" /> |
| 183 | |
| 184 | </LinearLayout> |
| 185 | |
| 186 | <Switch |
| 187 | android:id="@+id/settings_contacts" |
| 188 | android:layout_width="wrap_content" |
| 189 | android:layout_height="wrap_content" |
| 190 | android:layout_alignParentEnd="true" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 191 | android:checked="false" |
| 192 | android:layout_marginStart="16dp" /> |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 193 | |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 194 | </RelativeLayout>--> |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 195 | |
| 196 | <!-- System settings --> |
| 197 | |
| 198 | <TextView |
| 199 | android:layout_width="wrap_content" |
| 200 | android:layout_height="wrap_content" |
| 201 | android:padding="8dp" |
| 202 | android:text="@string/pref_category_system" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 203 | android:textColor="@color/textColorAccent" |
| 204 | android:textSize="18sp" |
| 205 | android:layout_marginStart="64dp" /> |
| 206 | |
| 207 | <RelativeLayout |
| 208 | android:id="@+id/settings_push_notifications_layout" |
| 209 | android:layout_width="match_parent" |
| 210 | android:layout_height="wrap_content" |
| 211 | android:orientation="horizontal" |
| 212 | android:padding="16dp"> |
| 213 | |
| 214 | <ImageView |
| 215 | android:id="@+id/push_image" |
| 216 | android:layout_width="wrap_content" |
| 217 | android:layout_height="wrap_content" |
| 218 | android:layout_alignParentStart="true" |
| 219 | android:layout_centerVertical="true" |
| 220 | android:layout_gravity="start" |
| 221 | android:contentDescription="@string/pref_pushNotifications_summary" |
| 222 | android:src="@drawable/baseline_notification_important_24" |
| 223 | android:layout_marginEnd="32dp"/> |
| 224 | |
| 225 | <LinearLayout |
| 226 | android:layout_width="wrap_content" |
| 227 | android:layout_height="wrap_content" |
| 228 | android:layout_centerVertical="true" |
| 229 | android:layout_toStartOf="@id/settings_push_notifications" |
| 230 | android:layout_toEndOf="@id/push_image" |
| 231 | android:orientation="vertical"> |
| 232 | |
| 233 | <TextView |
| 234 | style="@style/ListPrimary" |
| 235 | android:layout_width="match_parent" |
| 236 | android:layout_height="wrap_content" |
| 237 | android:lines="1" |
| 238 | android:text="@string/pref_pushNotifications_title" /> |
| 239 | |
| 240 | <TextView |
| 241 | style="@style/ListSecondary" |
| 242 | android:layout_width="match_parent" |
| 243 | android:layout_height="wrap_content" |
| 244 | android:text="@string/pref_pushNotifications_summary" /> |
| 245 | |
| 246 | </LinearLayout> |
| 247 | |
| 248 | <Switch |
| 249 | android:id="@+id/settings_push_notifications" |
| 250 | android:layout_width="wrap_content" |
| 251 | android:layout_height="wrap_content" |
| 252 | android:layout_alignParentEnd="true" |
| 253 | android:checked="false" |
| 254 | android:layout_marginStart="16dp"/> |
| 255 | |
| 256 | </RelativeLayout> |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 257 | |
| 258 | <RelativeLayout |
| 259 | android:layout_width="match_parent" |
| 260 | android:layout_height="wrap_content" |
| 261 | android:orientation="horizontal" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 262 | android:padding="16dp"> |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 263 | |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 264 | <ImageView |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 265 | android:id="@+id/system_dialer_image" |
| 266 | android:layout_width="wrap_content" |
| 267 | android:layout_height="wrap_content" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 268 | android:layout_gravity="start" |
| 269 | android:contentDescription="@string/pref_systemDialer_summary" |
| 270 | app:srcCompat="@drawable/baseline_dialpad_24" |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 271 | android:layout_alignParentStart="true" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 272 | android:layout_centerVertical="true" |
| 273 | android:layout_marginEnd="32dp" /> |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 274 | |
| 275 | <LinearLayout |
| 276 | android:layout_width="wrap_content" |
| 277 | android:layout_height="wrap_content" |
| 278 | android:layout_centerVertical="true" |
| 279 | android:layout_toStartOf="@+id/settings_place_call" |
| 280 | android:layout_toEndOf="@+id/system_dialer_image" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 281 | android:orientation="vertical"> |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 282 | |
| 283 | <TextView |
| 284 | style="@style/ListPrimary" |
| 285 | android:layout_width="match_parent" |
| 286 | android:layout_height="wrap_content" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 287 | android:ellipsize="end" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 288 | android:lines="1" |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 289 | android:text="@string/pref_systemDialer_title" /> |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 290 | |
| 291 | <TextView |
| 292 | android:layout_width="match_parent" |
| 293 | android:layout_height="wrap_content" |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 294 | android:text="@string/pref_systemDialer_summary" /> |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 295 | |
| 296 | </LinearLayout> |
| 297 | |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 298 | <Switch |
| 299 | android:id="@+id/settings_place_call" |
| 300 | android:layout_width="wrap_content" |
| 301 | android:layout_height="wrap_content" |
| 302 | android:layout_alignParentEnd="true" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 303 | android:checked="false" |
| 304 | android:layout_marginStart="16dp" /> |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 305 | |
| 306 | </RelativeLayout> |
| 307 | |
| 308 | <RelativeLayout |
| 309 | android:layout_width="match_parent" |
| 310 | android:layout_height="wrap_content" |
| 311 | android:orientation="horizontal" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 312 | android:padding="16dp"> |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 313 | |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 314 | <ImageView |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 315 | android:id="@+id/system_startOnBoot_image" |
| 316 | android:layout_width="wrap_content" |
| 317 | android:layout_height="wrap_content" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 318 | android:layout_gravity="start" |
| 319 | android:contentDescription="@string/pref_startOnBoot_summary" |
| 320 | app:srcCompat="@drawable/baseline_android_24" |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 321 | android:layout_alignParentStart="true" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 322 | android:layout_centerVertical="true" |
| 323 | android:layout_marginEnd="32dp"/> |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 324 | |
| 325 | <LinearLayout |
| 326 | android:layout_width="wrap_content" |
| 327 | android:layout_height="wrap_content" |
| 328 | android:layout_centerVertical="true" |
| 329 | android:layout_toStartOf="@+id/settings_startup" |
| 330 | android:layout_toEndOf="@+id/system_startOnBoot_image" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 331 | android:orientation="vertical"> |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 332 | |
| 333 | <TextView |
| 334 | style="@style/ListPrimary" |
| 335 | android:layout_width="match_parent" |
| 336 | android:layout_height="wrap_content" |
| 337 | android:ellipsize="end" |
| 338 | android:lines="1" |
| 339 | android:text="@string/pref_startOnBoot_title" /> |
| 340 | |
| 341 | <TextView |
| 342 | android:layout_width="match_parent" |
| 343 | android:layout_height="wrap_content" |
| 344 | android:text="@string/pref_startOnBoot_summary" /> |
| 345 | |
| 346 | </LinearLayout> |
| 347 | |
| 348 | <Switch |
| 349 | android:id="@+id/settings_startup" |
| 350 | android:layout_width="wrap_content" |
| 351 | android:layout_height="wrap_content" |
| 352 | android:layout_alignParentEnd="true" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 353 | android:checked="false" |
| 354 | android:layout_marginStart="16dp" /> |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 355 | |
| 356 | </RelativeLayout> |
| 357 | |
| 358 | <!-- Privacy --> |
| 359 | |
| 360 | <RelativeLayout |
| 361 | android:layout_width="match_parent" |
| 362 | android:layout_height="match_parent" |
| 363 | android:orientation="horizontal" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 364 | android:padding="16dp"> |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 365 | |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 366 | <ImageView |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 367 | android:id="@+id/system_persistNotification_image" |
| 368 | android:layout_width="wrap_content" |
| 369 | android:layout_height="wrap_content" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 370 | android:layout_gravity="start" |
| 371 | android:contentDescription="@string/pref_persistNotification_summary" |
| 372 | android:src="@drawable/baseline_dns_24" |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 373 | android:layout_alignParentStart="true" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 374 | android:layout_centerVertical="true" |
| 375 | android:layout_marginEnd="32dp"/> |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 376 | |
| 377 | <LinearLayout |
| 378 | android:layout_width="wrap_content" |
| 379 | android:layout_height="wrap_content" |
| 380 | android:layout_centerVertical="true" |
| 381 | android:layout_toStartOf="@+id/settings_persistNotification" |
| 382 | android:layout_toEndOf="@+id/system_persistNotification_image" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 383 | android:orientation="vertical"> |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 384 | |
| 385 | <TextView |
| 386 | style="@style/ListPrimary" |
| 387 | android:layout_width="match_parent" |
| 388 | android:layout_height="wrap_content" |
| 389 | android:ellipsize="end" |
| 390 | android:lines="1" |
| 391 | android:text="@string/pref_persistNotification_title" /> |
| 392 | |
| 393 | <TextView |
| 394 | android:layout_width="match_parent" |
| 395 | android:layout_height="wrap_content" |
| 396 | android:text="@string/pref_persistNotification_summary" /> |
| 397 | |
| 398 | </LinearLayout> |
| 399 | |
| 400 | <Switch |
| 401 | android:id="@+id/settings_persistNotification" |
| 402 | android:layout_width="wrap_content" |
| 403 | android:layout_height="wrap_content" |
| 404 | android:layout_alignParentEnd="true" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 405 | android:checked="false" |
| 406 | android:layout_marginStart="16dp"/> |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 407 | |
| 408 | </RelativeLayout> |
| 409 | |
| 410 | <TextView |
| 411 | android:layout_width="wrap_content" |
| 412 | android:layout_height="wrap_content" |
| 413 | android:padding="8dp" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 414 | android:layout_marginStart="64dp" |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 415 | android:text="@string/pref_category_privacy" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 416 | android:textColor="@color/textColorAccent" |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 417 | android:textSize="18sp" /> |
| 418 | |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 419 | <RelativeLayout |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 420 | android:id="@+id/settings_clear_history" |
| 421 | android:layout_width="match_parent" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 422 | android:layout_height="match_parent" |
| 423 | android:orientation="horizontal" |
| 424 | android:weightSum="1" |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 425 | android:background="?attr/selectableItemBackground" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 426 | android:padding="16dp"> |
| 427 | |
| 428 | <ImageView |
| 429 | android:id="@+id/system_clear_history_image" |
| 430 | android:layout_width="wrap_content" |
| 431 | android:layout_height="wrap_content" |
| 432 | android:layout_gravity="start" |
| 433 | android:contentDescription="@string/pref_clearHistory_summary" |
| 434 | android:src="@drawable/baseline_clear_all_24" |
| 435 | android:layout_alignParentStart="true" |
| 436 | android:layout_centerVertical="true" |
| 437 | android:layout_marginEnd="32dp" /> |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 438 | |
| 439 | <TextView |
| 440 | style="@style/ListPrimary" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 441 | android:id="@+id/system_clear_history_title" |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 442 | android:layout_width="match_parent" |
| 443 | android:layout_height="wrap_content" |
| 444 | android:ellipsize="end" |
| 445 | android:lines="1" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 446 | android:text="@string/pref_clearHistory_title" |
| 447 | android:layout_toEndOf="@+id/system_clear_history_image"/> |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 448 | |
| 449 | <TextView |
| 450 | android:layout_width="match_parent" |
| 451 | android:layout_height="wrap_content" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 452 | android:text="@string/pref_clearHistory_summary" |
| 453 | android:layout_toEndOf="@+id/system_clear_history_image" |
| 454 | android:layout_below="@id/system_clear_history_title"/> |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 455 | |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 456 | </RelativeLayout> |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 457 | |
| 458 | </LinearLayout> |
| 459 | </cx.ring.views.BoundedScrollView> |
| 460 | </RelativeLayout> |