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