Adrien Béraud | e552f69 | 2020-11-03 14:30:52 -0500 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?><!-- Copyright (C) 2016-2020 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 |
Adrien Béraud | b96a7d9 | 2020-02-24 11:55:05 -0500 | [diff] [blame] | 25 | android:id="@+id/scrollview" |
Thibault Wittemberg | 77cf600 | 2016-11-09 16:53:31 -0500 | [diff] [blame] | 26 | android:layout_width="match_parent" |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 27 | android:layout_height="wrap_content" |
| 28 | android:layout_centerHorizontal="true" |
| 29 | app:bounded_width="600dp"> |
Thibault Wittemberg | 77cf600 | 2016-11-09 16:53:31 -0500 | [diff] [blame] | 30 | |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 31 | <LinearLayout |
Thibault Wittemberg | 77cf600 | 2016-11-09 16:53:31 -0500 | [diff] [blame] | 32 | android:layout_width="match_parent" |
| 33 | android:layout_height="wrap_content" |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 34 | android:orientation="vertical" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 35 | android:paddingTop="8dp" |
| 36 | android:paddingBottom="8dp"> |
| 37 | |
| 38 | <RelativeLayout |
| 39 | android:id="@+id/settings_dark_theme_layout" |
| 40 | android:layout_width="match_parent" |
| 41 | android:layout_height="wrap_content" |
Adrien Béraud | e182678 | 2019-09-29 13:52:25 -0400 | [diff] [blame] | 42 | android:padding="@dimen/padding_large"> |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 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 | |
Adrien Béraud | e182678 | 2019-09-29 13:52:25 -0400 | [diff] [blame] | 55 | <TextView |
| 56 | android:id="@+id/theme_title" |
| 57 | style="@style/ListPrimary" |
| 58 | android:layout_width="match_parent" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 59 | android:layout_height="wrap_content" |
Adrien Béraud | e182678 | 2019-09-29 13:52:25 -0400 | [diff] [blame] | 60 | android:lines="1" |
| 61 | android:text="@string/pref_darkTheme_title" |
| 62 | android:layout_toStartOf="@id/settings_dark_theme" |
| 63 | android:layout_toEndOf="@id/theme_image" /> |
| 64 | |
| 65 | <TextView |
| 66 | style="@style/ListSecondary" |
| 67 | android:layout_width="match_parent" |
| 68 | android:layout_height="wrap_content" |
| 69 | android:text="@string/pref_darkTheme_summary" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 70 | android:layout_toStartOf="@id/settings_dark_theme" |
| 71 | android:layout_toEndOf="@id/theme_image" |
Adrien Béraud | e182678 | 2019-09-29 13:52:25 -0400 | [diff] [blame] | 72 | android:layout_below="@id/theme_title" /> |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 73 | |
| 74 | <Switch |
| 75 | android:id="@+id/settings_dark_theme" |
| 76 | android:layout_width="wrap_content" |
| 77 | android:layout_height="wrap_content" |
| 78 | android:layout_alignParentEnd="true" |
| 79 | android:checked="false" |
Adrien Béraud | e182678 | 2019-09-29 13:52:25 -0400 | [diff] [blame] | 80 | android:layout_marginStart="16dp" |
| 81 | android:layout_centerVertical="true"/> |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 82 | |
| 83 | </RelativeLayout> |
| 84 | |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 85 | <!-- Network settings --> |
| 86 | |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 87 | <RelativeLayout |
Adrien Béraud | 4d6c068 | 2019-08-24 21:47:19 -0400 | [diff] [blame] | 88 | android:id="@+id/settings_video_layout" |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 89 | android:layout_width="match_parent" |
| 90 | android:layout_height="wrap_content" |
Adrien Béraud | e182678 | 2019-09-29 13:52:25 -0400 | [diff] [blame] | 91 | android:padding="@dimen/padding_large"> |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 92 | |
| 93 | <ImageView |
| 94 | android:id="@+id/hwenc_image" |
| 95 | android:layout_width="wrap_content" |
| 96 | android:layout_height="wrap_content" |
| 97 | android:layout_alignParentStart="true" |
| 98 | android:layout_centerVertical="true" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 99 | app:srcCompat="@drawable/baseline_memory_24" |
| 100 | android:layout_marginEnd="32dp"/> |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 101 | |
Adrien Béraud | e182678 | 2019-09-29 13:52:25 -0400 | [diff] [blame] | 102 | <TextView |
| 103 | android:id="@+id/hwenc_title" |
| 104 | style="@style/ListPrimary" |
| 105 | android:layout_width="match_parent" |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 106 | android:layout_height="wrap_content" |
Adrien Béraud | e182678 | 2019-09-29 13:52:25 -0400 | [diff] [blame] | 107 | android:maxLines="3" |
| 108 | android:singleLine="false" |
| 109 | android:text="@string/pref_video_advanced_title" |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 110 | android:layout_toEndOf="@id/hwenc_image" |
Adrien Béraud | e182678 | 2019-09-29 13:52:25 -0400 | [diff] [blame] | 111 | android:layout_marginEnd="16dp" /> |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 112 | |
Adrien Béraud | e182678 | 2019-09-29 13:52:25 -0400 | [diff] [blame] | 113 | <TextView |
| 114 | style="@style/ListSecondary" |
| 115 | android:layout_width="match_parent" |
| 116 | android:layout_height="wrap_content" |
| 117 | android:text="@string/pref_video_advanced_summary" |
| 118 | android:layout_toEndOf="@id/hwenc_image" |
| 119 | android:layout_marginEnd="16dp" |
| 120 | android:layout_below="@id/hwenc_title"/> |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 121 | |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 122 | </RelativeLayout> |
| 123 | |
Aline Gondim Santos | f781c5b | 2020-06-26 12:44:44 -0400 | [diff] [blame] | 124 | <RelativeLayout |
| 125 | android:id="@+id/settings_plugins_layout" |
| 126 | android:layout_width="match_parent" |
| 127 | android:layout_height="wrap_content" |
| 128 | android:padding="@dimen/padding_large"> |
| 129 | |
| 130 | <ImageView |
| 131 | android:id="@+id/plugins_image" |
| 132 | android:layout_width="wrap_content" |
| 133 | android:layout_height="wrap_content" |
| 134 | android:layout_alignParentStart="true" |
| 135 | android:layout_centerVertical="true" |
| 136 | android:contentDescription="@string/pref_plugins_summary" |
| 137 | app:srcCompat="@drawable/ic_plugin" |
| 138 | android:layout_marginEnd="32dp"/> |
| 139 | <LinearLayout |
| 140 | android:layout_width="wrap_content" |
| 141 | android:layout_height="wrap_content" |
| 142 | android:layout_centerVertical="true" |
| 143 | android:layout_toStartOf="@+id/settings_plugins_switch" |
| 144 | android:layout_toEndOf="@+id/plugins_image" |
| 145 | android:orientation="vertical"> |
| 146 | <TextView |
| 147 | android:id="@+id/plugins_title" |
| 148 | style="@style/ListPrimary" |
| 149 | android:layout_width="match_parent" |
| 150 | android:layout_height="wrap_content" |
| 151 | android:maxLines="3" |
| 152 | android:singleLine="false" |
| 153 | android:text="@string/pref_plugins_title" |
| 154 | android:layout_toEndOf="@id/plugins_image" |
| 155 | android:layout_marginEnd="16dp" /> |
| 156 | |
| 157 | <TextView |
| 158 | style="@style/ListSecondary" |
| 159 | android:layout_width="match_parent" |
| 160 | android:layout_height="wrap_content" |
| 161 | android:text="@string/pref_plugins_summary" |
| 162 | android:layout_toEndOf="@id/plugins_image" |
| 163 | android:layout_marginEnd="16dp" |
| 164 | android:layout_below="@id/plugins_title"/> |
| 165 | |
| 166 | </LinearLayout> |
| 167 | |
| 168 | <Switch |
| 169 | android:id="@+id/settings_plugins_switch" |
| 170 | android:layout_width="wrap_content" |
| 171 | android:layout_height="wrap_content" |
| 172 | android:layout_alignParentEnd="true" |
| 173 | android:checked="false" |
| 174 | android:layout_marginStart="16dp" |
| 175 | android:layout_centerVertical="true"/> |
| 176 | |
| 177 | </RelativeLayout> |
| 178 | |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 179 | <!-- Contacts settings --> |
| 180 | |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 181 | <!-- |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 182 | <TextView |
| 183 | android:layout_width="wrap_content" |
| 184 | android:layout_height="wrap_content" |
| 185 | android:padding="8dp" |
| 186 | android:text="@string/pref_category_contacts" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 187 | android:textColor="@color/textColorAccent" |
| 188 | android:textSize="18sp" |
| 189 | android:layout_marginStart="64dp" /> |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 190 | |
| 191 | <RelativeLayout |
| 192 | android:layout_width="match_parent" |
| 193 | android:layout_height="wrap_content" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 194 | android:padding="16dp"> |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 195 | |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 196 | <ImageView |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 197 | android:id="@+id/contacts_image" |
| 198 | android:layout_width="wrap_content" |
| 199 | android:layout_height="wrap_content" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 200 | android:contentDescription="@string/pref_systemContacts_summary" |
| 201 | app:srcCompat="@drawable/baseline_group_24" |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 202 | android:layout_alignParentStart="true" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 203 | android:layout_centerVertical="true" |
| 204 | android:layout_marginEnd="32dp"/> |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 205 | |
| 206 | <LinearLayout |
| 207 | android:layout_width="wrap_content" |
| 208 | android:layout_height="wrap_content" |
| 209 | android:layout_centerVertical="true" |
| 210 | android:layout_toStartOf="@+id/settings_contacts" |
| 211 | android:layout_toEndOf="@+id/contacts_image" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 212 | android:orientation="vertical"> |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 213 | |
| 214 | <TextView |
| 215 | style="@style/ListPrimary" |
| 216 | android:layout_width="match_parent" |
| 217 | android:layout_height="wrap_content" |
| 218 | android:lines="1" |
| 219 | android:text="@string/pref_systemContacts_title" /> |
| 220 | |
| 221 | <TextView |
| 222 | android:layout_width="match_parent" |
| 223 | android:layout_height="wrap_content" |
| 224 | android:text="@string/pref_systemContacts_summary" /> |
| 225 | |
| 226 | </LinearLayout> |
| 227 | |
| 228 | <Switch |
| 229 | android:id="@+id/settings_contacts" |
| 230 | android:layout_width="wrap_content" |
| 231 | android:layout_height="wrap_content" |
| 232 | android:layout_alignParentEnd="true" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 233 | android:checked="false" |
| 234 | android:layout_marginStart="16dp" /> |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 235 | |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 236 | </RelativeLayout>--> |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 237 | |
Amirhossein | 02e37c7 | 2021-01-08 15:02:26 -0500 | [diff] [blame] | 238 | <!-- Privacy --> |
| 239 | |
| 240 | <TextView |
| 241 | android:layout_width="wrap_content" |
| 242 | android:layout_height="wrap_content" |
| 243 | android:padding="8dp" |
| 244 | android:layout_marginStart="64dp" |
| 245 | android:text="@string/pref_category_privacy" |
| 246 | android:textColor="@color/textColorAccent" |
| 247 | android:textSize="18sp" /> |
| 248 | |
| 249 | <RelativeLayout |
| 250 | android:layout_width="match_parent" |
| 251 | android:layout_height="match_parent" |
| 252 | android:padding="@dimen/padding_large"> |
| 253 | |
| 254 | <ImageView |
| 255 | android:id="@+id/system_typing_image" |
| 256 | android:layout_width="wrap_content" |
| 257 | android:layout_height="wrap_content" |
| 258 | android:contentDescription="@string/pref_typing_summary" |
| 259 | android:src="@drawable/baseline_keyboard_24" |
| 260 | android:layout_alignParentStart="true" |
| 261 | android:layout_centerVertical="true" |
| 262 | android:layout_marginEnd="32dp"/> |
| 263 | |
| 264 | <LinearLayout |
| 265 | android:layout_width="wrap_content" |
| 266 | android:layout_height="wrap_content" |
| 267 | android:layout_centerVertical="true" |
| 268 | android:layout_toStartOf="@+id/settings_typing" |
| 269 | android:layout_toEndOf="@+id/system_typing_image" |
| 270 | android:orientation="vertical"> |
| 271 | |
| 272 | <TextView |
| 273 | style="@style/ListPrimary" |
| 274 | android:layout_width="match_parent" |
| 275 | android:layout_height="wrap_content" |
| 276 | android:ellipsize="end" |
| 277 | android:lines="1" |
| 278 | android:text="@string/pref_typing_title" /> |
| 279 | |
| 280 | <TextView |
| 281 | style="@style/ListSecondary" |
| 282 | android:layout_width="match_parent" |
| 283 | android:layout_height="wrap_content" |
| 284 | android:text="@string/pref_typing_summary" /> |
| 285 | |
| 286 | </LinearLayout> |
| 287 | |
| 288 | <Switch |
| 289 | android:id="@+id/settings_typing" |
| 290 | android:layout_width="wrap_content" |
| 291 | android:layout_height="wrap_content" |
| 292 | android:layout_alignParentEnd="true" |
| 293 | android:checked="true" |
| 294 | android:layout_marginStart="16dp" |
| 295 | android:layout_centerVertical="true"/> |
| 296 | |
| 297 | </RelativeLayout> |
| 298 | |
| 299 | <RelativeLayout |
| 300 | android:layout_width="match_parent" |
| 301 | android:layout_height="match_parent" |
| 302 | android:padding="@dimen/padding_large"> |
| 303 | |
| 304 | <ImageView |
| 305 | android:id="@+id/system_read_image" |
| 306 | android:layout_width="wrap_content" |
| 307 | android:layout_height="wrap_content" |
| 308 | android:contentDescription="@string/pref_read_summary" |
| 309 | android:src="@drawable/baseline_mark_chat_read_24dp" |
| 310 | android:layout_alignParentStart="true" |
| 311 | app:tint="@color/colorPrimary" |
| 312 | android:layout_centerVertical="true" |
| 313 | android:layout_marginEnd="32dp"/> |
| 314 | |
| 315 | <LinearLayout |
| 316 | android:layout_width="wrap_content" |
| 317 | android:layout_height="wrap_content" |
| 318 | android:layout_centerVertical="true" |
| 319 | android:layout_toStartOf="@+id/settings_read" |
| 320 | android:layout_toEndOf="@+id/system_read_image" |
| 321 | android:orientation="vertical"> |
| 322 | |
| 323 | <TextView |
| 324 | style="@style/ListPrimary" |
| 325 | android:layout_width="match_parent" |
| 326 | android:layout_height="wrap_content" |
| 327 | android:ellipsize="end" |
| 328 | android:lines="1" |
| 329 | android:text="@string/pref_read_title" /> |
| 330 | |
| 331 | <TextView |
| 332 | style="@style/ListSecondary" |
| 333 | android:layout_width="match_parent" |
| 334 | android:layout_height="wrap_content" |
| 335 | android:text="@string/pref_read_summary" /> |
| 336 | |
| 337 | </LinearLayout> |
| 338 | |
| 339 | <Switch |
| 340 | android:id="@+id/settings_read" |
| 341 | android:layout_width="wrap_content" |
| 342 | android:layout_height="wrap_content" |
| 343 | android:layout_alignParentEnd="true" |
| 344 | android:checked="true" |
| 345 | android:layout_marginStart="16dp" |
| 346 | android:layout_centerVertical="true"/> |
| 347 | |
| 348 | </RelativeLayout> |
| 349 | |
| 350 | <RelativeLayout |
Amirhossein | 7bb77aa | 2020-12-18 16:30:44 -0500 | [diff] [blame^] | 351 | android:layout_width="match_parent" |
| 352 | android:layout_height="match_parent" |
| 353 | android:padding="@dimen/padding_large"> |
| 354 | |
| 355 | <ImageView |
| 356 | android:id="@+id/system_block_record_image" |
| 357 | android:layout_width="wrap_content" |
| 358 | android:layout_height="wrap_content" |
| 359 | android:contentDescription="@string/pref_read_summary" |
| 360 | android:src="@drawable/baseline_stop_screen_share_24dp" |
| 361 | android:layout_alignParentStart="true" |
| 362 | app:tint="@color/colorPrimary" |
| 363 | android:layout_centerVertical="true" |
| 364 | android:layout_marginEnd="32dp"/> |
| 365 | |
| 366 | <LinearLayout |
| 367 | android:layout_width="wrap_content" |
| 368 | android:layout_height="wrap_content" |
| 369 | android:layout_centerVertical="true" |
| 370 | android:layout_toStartOf="@+id/settings_block_record" |
| 371 | android:layout_toEndOf="@+id/system_block_record_image" |
| 372 | android:orientation="vertical"> |
| 373 | |
| 374 | <TextView |
| 375 | style="@style/ListPrimary" |
| 376 | android:layout_width="match_parent" |
| 377 | android:layout_height="wrap_content" |
| 378 | android:ellipsize="end" |
| 379 | android:lines="1" |
| 380 | android:text="@string/pref_block_record_title" /> |
| 381 | |
| 382 | <TextView |
| 383 | style="@style/ListSecondary" |
| 384 | android:layout_width="match_parent" |
| 385 | android:layout_height="wrap_content" |
| 386 | android:text="@string/pref_block_record_summary" /> |
| 387 | |
| 388 | </LinearLayout> |
| 389 | |
| 390 | <Switch |
| 391 | android:id="@+id/settings_block_record" |
| 392 | android:layout_width="wrap_content" |
| 393 | android:layout_height="wrap_content" |
| 394 | android:layout_alignParentEnd="true" |
| 395 | android:checked="false" |
| 396 | android:layout_marginStart="16dp" |
| 397 | android:layout_centerVertical="true"/> |
| 398 | |
| 399 | </RelativeLayout> |
| 400 | |
| 401 | <RelativeLayout |
Amirhossein | 02e37c7 | 2021-01-08 15:02:26 -0500 | [diff] [blame] | 402 | android:id="@+id/settings_clear_history" |
| 403 | android:layout_width="match_parent" |
| 404 | android:layout_height="match_parent" |
| 405 | android:background="?attr/selectableItemBackground" |
| 406 | android:padding="@dimen/padding_large"> |
| 407 | |
| 408 | <ImageView |
| 409 | android:id="@+id/system_clear_history_image" |
| 410 | android:layout_width="wrap_content" |
| 411 | android:layout_height="wrap_content" |
| 412 | android:layout_gravity="start" |
| 413 | android:contentDescription="@string/pref_clearHistory_summary" |
| 414 | android:src="@drawable/baseline_clear_all_24" |
| 415 | android:layout_alignParentStart="true" |
| 416 | android:layout_centerVertical="true" |
| 417 | android:layout_marginEnd="32dp" /> |
| 418 | |
| 419 | <TextView |
| 420 | style="@style/ListPrimary" |
| 421 | android:id="@+id/system_clear_history_title" |
| 422 | android:layout_width="match_parent" |
| 423 | android:layout_height="wrap_content" |
| 424 | android:ellipsize="end" |
| 425 | android:lines="1" |
| 426 | android:text="@string/pref_clearHistory_title" |
| 427 | android:layout_toEndOf="@+id/system_clear_history_image"/> |
| 428 | |
| 429 | <TextView |
| 430 | style="@style/ListSecondary" |
| 431 | android:layout_width="match_parent" |
| 432 | android:layout_height="wrap_content" |
| 433 | android:text="@string/pref_clearHistory_summary" |
| 434 | android:layout_toEndOf="@+id/system_clear_history_image" |
| 435 | android:layout_below="@id/system_clear_history_title"/> |
| 436 | |
| 437 | </RelativeLayout> |
| 438 | |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 439 | <!-- System settings --> |
| 440 | |
| 441 | <TextView |
| 442 | android:layout_width="wrap_content" |
| 443 | android:layout_height="wrap_content" |
| 444 | android:padding="8dp" |
| 445 | android:text="@string/pref_category_system" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 446 | android:textColor="@color/textColorAccent" |
| 447 | android:textSize="18sp" |
| 448 | android:layout_marginStart="64dp" /> |
| 449 | |
| 450 | <RelativeLayout |
| 451 | android:id="@+id/settings_push_notifications_layout" |
| 452 | android:layout_width="match_parent" |
| 453 | android:layout_height="wrap_content" |
Adrien Béraud | e182678 | 2019-09-29 13:52:25 -0400 | [diff] [blame] | 454 | android:padding="@dimen/padding_large"> |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 455 | |
| 456 | <ImageView |
| 457 | android:id="@+id/push_image" |
| 458 | android:layout_width="wrap_content" |
| 459 | android:layout_height="wrap_content" |
| 460 | android:layout_alignParentStart="true" |
| 461 | android:layout_centerVertical="true" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 462 | android:contentDescription="@string/pref_pushNotifications_summary" |
| 463 | android:src="@drawable/baseline_notification_important_24" |
| 464 | android:layout_marginEnd="32dp"/> |
| 465 | |
| 466 | <LinearLayout |
| 467 | android:layout_width="wrap_content" |
| 468 | android:layout_height="wrap_content" |
| 469 | android:layout_centerVertical="true" |
| 470 | android:layout_toStartOf="@id/settings_push_notifications" |
| 471 | android:layout_toEndOf="@id/push_image" |
| 472 | android:orientation="vertical"> |
| 473 | |
| 474 | <TextView |
| 475 | style="@style/ListPrimary" |
| 476 | android:layout_width="match_parent" |
| 477 | android:layout_height="wrap_content" |
| 478 | android:lines="1" |
| 479 | android:text="@string/pref_pushNotifications_title" /> |
| 480 | |
| 481 | <TextView |
| 482 | style="@style/ListSecondary" |
| 483 | android:layout_width="match_parent" |
| 484 | android:layout_height="wrap_content" |
| 485 | android:text="@string/pref_pushNotifications_summary" /> |
| 486 | |
| 487 | </LinearLayout> |
| 488 | |
| 489 | <Switch |
| 490 | android:id="@+id/settings_push_notifications" |
| 491 | android:layout_width="wrap_content" |
| 492 | android:layout_height="wrap_content" |
| 493 | android:layout_alignParentEnd="true" |
| 494 | android:checked="false" |
Adrien Béraud | e182678 | 2019-09-29 13:52:25 -0400 | [diff] [blame] | 495 | android:layout_marginStart="16dp" |
| 496 | android:layout_centerVertical="true"/> |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 497 | |
| 498 | </RelativeLayout> |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 499 | |
| 500 | <RelativeLayout |
| 501 | android:layout_width="match_parent" |
| 502 | android:layout_height="wrap_content" |
Adrien Béraud | e182678 | 2019-09-29 13:52:25 -0400 | [diff] [blame] | 503 | android:padding="@dimen/padding_large"> |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 504 | |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 505 | <ImageView |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 506 | android:id="@+id/system_dialer_image" |
| 507 | android:layout_width="wrap_content" |
| 508 | android:layout_height="wrap_content" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 509 | android:contentDescription="@string/pref_systemDialer_summary" |
| 510 | app:srcCompat="@drawable/baseline_dialpad_24" |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 511 | android:layout_alignParentStart="true" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 512 | android:layout_centerVertical="true" |
| 513 | android:layout_marginEnd="32dp" /> |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 514 | |
| 515 | <LinearLayout |
| 516 | android:layout_width="wrap_content" |
| 517 | android:layout_height="wrap_content" |
| 518 | android:layout_centerVertical="true" |
| 519 | android:layout_toStartOf="@+id/settings_place_call" |
| 520 | android:layout_toEndOf="@+id/system_dialer_image" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 521 | android:orientation="vertical"> |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 522 | |
| 523 | <TextView |
| 524 | style="@style/ListPrimary" |
| 525 | android:layout_width="match_parent" |
| 526 | android:layout_height="wrap_content" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 527 | android:ellipsize="end" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 528 | android:lines="1" |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 529 | android:text="@string/pref_systemDialer_title" /> |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 530 | |
| 531 | <TextView |
Adrien Béraud | c8599a3 | 2019-09-26 10:20:39 -0400 | [diff] [blame] | 532 | style="@style/ListSecondary" |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 533 | android:layout_width="match_parent" |
| 534 | android:layout_height="wrap_content" |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 535 | android:text="@string/pref_systemDialer_summary" /> |
Aline Bonnet | 5835751 | 2016-12-14 16:55:50 -0500 | [diff] [blame] | 536 | |
| 537 | </LinearLayout> |
| 538 | |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 539 | <Switch |
| 540 | android:id="@+id/settings_place_call" |
| 541 | android:layout_width="wrap_content" |
| 542 | android:layout_height="wrap_content" |
| 543 | android:layout_alignParentEnd="true" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 544 | android:checked="false" |
Adrien Béraud | e182678 | 2019-09-29 13:52:25 -0400 | [diff] [blame] | 545 | android:layout_marginStart="16dp" |
| 546 | android:layout_centerVertical="true"/> |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 547 | |
| 548 | </RelativeLayout> |
| 549 | |
| 550 | <RelativeLayout |
| 551 | android:layout_width="match_parent" |
| 552 | android:layout_height="wrap_content" |
Adrien Béraud | e182678 | 2019-09-29 13:52:25 -0400 | [diff] [blame] | 553 | android:padding="@dimen/padding_large"> |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 554 | |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 555 | <ImageView |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 556 | android:id="@+id/system_startOnBoot_image" |
| 557 | android:layout_width="wrap_content" |
| 558 | android:layout_height="wrap_content" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 559 | android:contentDescription="@string/pref_startOnBoot_summary" |
| 560 | app:srcCompat="@drawable/baseline_android_24" |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 561 | android:layout_alignParentStart="true" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 562 | android:layout_centerVertical="true" |
| 563 | android:layout_marginEnd="32dp"/> |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 564 | |
| 565 | <LinearLayout |
| 566 | android:layout_width="wrap_content" |
| 567 | android:layout_height="wrap_content" |
| 568 | android:layout_centerVertical="true" |
| 569 | android:layout_toStartOf="@+id/settings_startup" |
| 570 | android:layout_toEndOf="@+id/system_startOnBoot_image" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 571 | android:orientation="vertical"> |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 572 | |
| 573 | <TextView |
| 574 | style="@style/ListPrimary" |
| 575 | android:layout_width="match_parent" |
| 576 | android:layout_height="wrap_content" |
| 577 | android:ellipsize="end" |
| 578 | android:lines="1" |
| 579 | android:text="@string/pref_startOnBoot_title" /> |
| 580 | |
| 581 | <TextView |
Adrien Béraud | c8599a3 | 2019-09-26 10:20:39 -0400 | [diff] [blame] | 582 | style="@style/ListSecondary" |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 583 | android:layout_width="match_parent" |
| 584 | android:layout_height="wrap_content" |
| 585 | android:text="@string/pref_startOnBoot_summary" /> |
| 586 | |
| 587 | </LinearLayout> |
| 588 | |
| 589 | <Switch |
| 590 | android:id="@+id/settings_startup" |
| 591 | android:layout_width="wrap_content" |
| 592 | android:layout_height="wrap_content" |
| 593 | android:layout_alignParentEnd="true" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 594 | android:checked="false" |
Adrien Béraud | e182678 | 2019-09-29 13:52:25 -0400 | [diff] [blame] | 595 | android:layout_marginStart="16dp" |
| 596 | android:layout_centerVertical="true"/> |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 597 | |
| 598 | </RelativeLayout> |
| 599 | |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 600 | <RelativeLayout |
| 601 | android:layout_width="match_parent" |
| 602 | android:layout_height="match_parent" |
Adrien Béraud | e182678 | 2019-09-29 13:52:25 -0400 | [diff] [blame] | 603 | android:padding="@dimen/padding_large"> |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 604 | |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 605 | <ImageView |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 606 | android:id="@+id/system_persistNotification_image" |
| 607 | android:layout_width="wrap_content" |
| 608 | android:layout_height="wrap_content" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 609 | android:contentDescription="@string/pref_persistNotification_summary" |
| 610 | android:src="@drawable/baseline_dns_24" |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 611 | android:layout_alignParentStart="true" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 612 | android:layout_centerVertical="true" |
| 613 | android:layout_marginEnd="32dp"/> |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 614 | |
| 615 | <LinearLayout |
| 616 | android:layout_width="wrap_content" |
| 617 | android:layout_height="wrap_content" |
| 618 | android:layout_centerVertical="true" |
| 619 | android:layout_toStartOf="@+id/settings_persistNotification" |
| 620 | android:layout_toEndOf="@+id/system_persistNotification_image" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 621 | android:orientation="vertical"> |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 622 | |
| 623 | <TextView |
| 624 | style="@style/ListPrimary" |
| 625 | android:layout_width="match_parent" |
| 626 | android:layout_height="wrap_content" |
| 627 | android:ellipsize="end" |
| 628 | android:lines="1" |
| 629 | android:text="@string/pref_persistNotification_title" /> |
| 630 | |
| 631 | <TextView |
Adrien Béraud | c8599a3 | 2019-09-26 10:20:39 -0400 | [diff] [blame] | 632 | style="@style/ListSecondary" |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 633 | android:layout_width="match_parent" |
| 634 | android:layout_height="wrap_content" |
| 635 | android:text="@string/pref_persistNotification_summary" /> |
| 636 | |
| 637 | </LinearLayout> |
| 638 | |
| 639 | <Switch |
| 640 | android:id="@+id/settings_persistNotification" |
| 641 | android:layout_width="wrap_content" |
| 642 | android:layout_height="wrap_content" |
| 643 | android:layout_alignParentEnd="true" |
Adrien Béraud | 91f8874 | 2019-09-09 00:46:46 -0400 | [diff] [blame] | 644 | android:checked="false" |
Adrien Béraud | e182678 | 2019-09-29 13:52:25 -0400 | [diff] [blame] | 645 | android:layout_marginStart="16dp" |
| 646 | android:layout_centerVertical="true"/> |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 647 | |
| 648 | </RelativeLayout> |
| 649 | |
Adrien Béraud | 693b688 | 2019-01-27 14:51:11 -0500 | [diff] [blame] | 650 | </LinearLayout> |
| 651 | </cx.ring.views.BoundedScrollView> |
| 652 | </RelativeLayout> |