]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blob - app/src/main/res/xml/preferences.xml
Expand the options for selecting a download provider. https://redmine.stoutner.com...
[PrivacyBrowserAndroid.git] / app / src / main / res / xml / preferences.xml
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <!--
4   Copyright 2016-2024 Soren Stoutner <soren@stoutner.com>.
5
6   This file is part of Privacy Browser Android <https://www.stoutner.com/privacy-browser-android>.
7
8   Privacy Browser Android is free software: you can redistribute it and/or modify
9   it under the terms of the GNU General Public License as published by
10   the Free Software Foundation, either version 3 of the License, or
11   (at your option) any later version.
12
13   Privacy Browser Android is distributed in the hope that it will be useful,
14   but WITHOUT ANY WARRANTY; without even the implied warranty of
15   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16   GNU General Public License for more details.
17
18   You should have received a copy of the GNU General Public License
19   along with Privacy Browser Android.  If not, see <http://www.gnu.org/licenses/>. -->
20
21 <PreferenceScreen
22     xmlns:app="http://schemas.android.com/apk/res-auto"
23     xmlns:android="http://schemas.android.com/apk/res/android">
24
25     <PreferenceCategory
26         app:key="@string/privacy_category_key"
27         app:title="@string/privacy" >
28
29         <SwitchPreferenceCompat
30             app:key="@string/javascript_key"
31             app:title="@string/javascript"
32             app:summary="@string/javascript_preference_summary"
33             app:defaultValue="false" />
34
35         <SwitchPreferenceCompat
36             app:key="@string/cookies_key"
37             app:title="@string/cookies"
38             app:summary="@string/cookies_preference_summary"
39             app:defaultValue="false" />
40
41         <SwitchPreferenceCompat
42             app:key="@string/dom_storage_key"
43             app:title="@string/dom_storage_preference"
44             app:summary="@string/dom_storage_preference_summary"
45             app:defaultValue="false" />
46
47         <!-- Save form data can be removed once the minimum API >= 26. -->
48         <SwitchPreferenceCompat
49             app:key="@string/save_form_data_key"
50             app:title="@string/save_form_data_preference"
51             app:summary="@string/save_form_data_preference_summary"
52             app:defaultValue="false" />
53
54         <ListPreference
55             app:key="@string/user_agent_key"
56             app:title="@string/user_agent"
57             app:entries="@array/translated_user_agent_names"
58             app:entryValues="@array/user_agent_names"
59             app:defaultValue="@string/user_agent_default_value"
60             app:icon="@drawable/user_agent" />
61
62         <!-- android:inputType="textVisiblePassword" sets the keyboard to have a dedicated number row.-->
63         <EditTextPreference
64             app:key="@string/custom_user_agent_key"
65             app:title="@string/custom_user_agent"
66             app:defaultValue="@string/custom_user_agent_default_value"
67             android:inputType="textVisiblePassword|textMultiLine" />
68
69         <SwitchPreferenceCompat
70             app:key="@string/incognito_mode_key"
71             app:title="@string/incognito_mode"
72             app:summary="@string/incognito_mode_summary"
73             app:defaultValue="false" />
74
75         <SwitchPreferenceCompat
76             app:key="@string/allow_screenshots_key"
77             app:title="@string/allow_screenshots"
78             app:summary="@string/allow_screenshots_summary"
79             app:defaultValue="false" />
80     </PreferenceCategory>
81
82     <PreferenceCategory
83         app:key="filterlists"
84         app:title="@string/filterlists" >
85
86         <SwitchPreferenceCompat
87             app:key="@string/easylist_key"
88             app:title="@string/easylist"
89             app:summary="@string/easylist_summary"
90             app:defaultValue="true" />
91
92         <SwitchPreferenceCompat
93             app:key="@string/easyprivacy_key"
94             app:title="@string/easyprivacy"
95             app:summary="@string/easyprivacy_summary"
96             app:defaultValue="true" />
97
98         <SwitchPreferenceCompat
99             app:key="@string/fanboys_annoyance_list_key"
100             app:title="@string/fanboys_annoyance_list"
101             app:summary="@string/fanboys_annoyance_list_summary"
102             app:defaultValue="true" />
103
104         <SwitchPreferenceCompat
105             app:key="@string/fanboys_social_blocking_list_key"
106             app:title="@string/fanboys_social_blocking_list"
107             app:summary="@string/fanboys_social_blocking_list_summary"
108             app:defaultValue="true" />
109
110         <SwitchPreferenceCompat
111             app:key="@string/ultralist_key"
112             app:title="@string/ultralist"
113             app:summary="@string/ultralist_summary"
114             app:defaultValue="true" />
115
116         <SwitchPreferenceCompat
117             app:key="@string/ultraprivacy_key"
118             app:title="@string/ultraprivacy"
119             app:summary="@string/ultraprivacy_summary"
120             app:defaultValue="true" />
121
122         <SwitchPreferenceCompat
123             app:key="@string/block_all_third_party_requests_key"
124             app:title="@string/block_all_third_party_requests"
125             app:summary="@string/block_all_third_party_requests_summary"
126             app:defaultValue="false" />
127     </PreferenceCategory>
128
129     <PreferenceCategory
130         app:key="url_modification"
131         app:title="@string/url_modification" >
132
133         <SwitchPreferenceCompat
134             app:key="@string/tracking_queries_key"
135             app:title="@string/tracking_queries"
136             app:summary="@string/tracking_queries_summary"
137             app:defaultValue="true" />
138
139         <SwitchPreferenceCompat
140             app:key="@string/amp_redirects_key"
141             app:title="@string/amp_redirects"
142             app:summary="@string/amp_redirects_summary"
143             app:defaultValue="true" />
144     </PreferenceCategory>
145
146     <PreferenceCategory
147         app:key="search_category"
148         app:title="@string/search" >
149
150         <ListPreference
151             app:key="@string/search_key"
152             app:title="@string/search"
153             app:entries="@array/search_entries"
154             app:entryValues="@array/search_entry_values"
155             app:defaultValue="@string/search_default_value"
156             app:icon="@drawable/search" />
157
158         <EditTextPreference
159             app:key="@string/search_custom_url_key"
160             app:title="@string/search_custom_url"
161             app:defaultValue="@string/search_custom_url_default_value"
162             android:inputType="textUri" />
163     </PreferenceCategory>
164
165     <PreferenceCategory
166         app:key="proxy_category"
167         app:title="@string/proxy" >
168
169         <ListPreference
170             app:key="@string/proxy_key"
171             app:title="@string/proxy"
172             app:entries="@array/proxy_entries"
173             app:entryValues="@array/proxy_entry_values"
174             app:defaultValue="@string/proxy_default_value" />
175
176         <EditTextPreference
177             app:key="@string/proxy_custom_url_key"
178             app:title="@string/proxy_custom_url"
179             app:defaultValue="@string/proxy_custom_url_default_value"
180             android:inputType="textUri" />
181     </PreferenceCategory>
182
183     <PreferenceCategory
184         app:key="full_screen"
185         app:title="@string/full_screen" >
186
187         <SwitchPreferenceCompat
188             app:key="@string/full_screen_browsing_mode_key"
189             app:title="@string/full_screen_browsing_mode"
190             app:summary="@string/full_screen_browsing_mode_summary"
191             app:defaultValue="false" />
192
193         <SwitchPreferenceCompat
194             app:key="@string/hide_app_bar_key"
195             app:title="@string/hide_app_bar"
196             app:summary="@string/hide_app_bar_summary"
197             app:defaultValue="true" />
198
199         <SwitchPreferenceCompat
200             app:key="@string/display_under_cutouts_key"
201             app:title="@string/display_under_cutouts"
202             app:summary="@string/display_under_cutouts_summary"
203             app:defaultValue="false" />
204     </PreferenceCategory>
205
206     <PreferenceCategory
207         app:key="@string/clear_and_exit_category_key"
208         app:title="@string/clear_and_exit" >
209
210         <SwitchPreferenceCompat
211             app:key="@string/clear_everything_key"
212             app:title="@string/clear_everything"
213             app:summary="@string/clear_everything_summary"
214             app:defaultValue="true" />
215
216         <SwitchPreferenceCompat
217             app:key="@string/clear_cookies_key"
218             app:title="@string/clear_cookies_preference"
219             app:summary="@string/clear_cookies_summary"
220             app:defaultValue="true" />
221
222         <SwitchPreferenceCompat
223             app:key="@string/clear_dom_storage_key"
224             app:title="@string/clear_dom_storage_preference"
225             app:summary="@string/clear_dom_storage_summary"
226             app:defaultValue="true" />
227
228         <!-- Clear form data can be removed once the minimum API >= 26. -->
229         <SwitchPreferenceCompat
230             app:key="@string/clear_form_data_key"
231             app:title="@string/clear_form_data_preference"
232             app:summary="@string/clear_form_data_summary"
233             app:defaultValue="true" />
234
235         <SwitchPreferenceCompat
236             app:key="@string/clear_logcat_key"
237             app:title="@string/clear_logcat"
238             app:summary="@string/clear_logcat_summary"
239             app:defaultValue="true" />
240
241         <SwitchPreferenceCompat
242             app:key="@string/clear_cache_key"
243             app:title="@string/clear_cache"
244             app:summary="@string/clear_cache_summary"
245             app:defaultValue="true" />
246     </PreferenceCategory>
247
248     <PreferenceCategory
249         app:key="@string/general_category_key"
250         app:title="@string/general" >
251
252         <EditTextPreference
253             app:key="@string/homepage_key"
254             app:title="@string/homepage"
255             app:defaultValue="@string/homepage_default_value"
256             android:inputType="textUri"
257             app:icon="@drawable/home" />
258
259         <!-- `android:inputType="number"` currently doesn't work with AndroidX. -->
260         <EditTextPreference
261             app:key="@string/font_size_key"
262             app:title="@string/font_size_preference"
263             app:defaultValue="@string/font_size_default_value"
264             android:inputType="number"
265             app:icon="@drawable/font_size" />
266
267         <SwitchPreferenceCompat
268             app:key="@string/open_intents_in_new_tab_key"
269             app:title="@string/open_intents_in_new_tab"
270             app:summary="@string/open_intents_in_new_tab_summary"
271             app:defaultValue="true" />
272
273         <SwitchPreferenceCompat
274             app:key="@string/swipe_to_refresh_key"
275             app:title="@string/swipe_to_refresh"
276             app:summary="@string/swipe_to_refresh_summary"
277             app:defaultValue="true" />
278
279         <ListPreference
280             app:key="@string/download_provider_key"
281             app:title="@string/download_provider"
282             app:entries="@array/download_provider_entries"
283             app:entryValues="@array/download_provider_entry_values"
284             app:defaultValue="@string/download_provider_default_value"
285             app:icon="@drawable/download" />
286
287         <SwitchPreferenceCompat
288             app:key="@string/scroll_app_bar_key"
289             app:title="@string/scroll_app_bar"
290             app:summary="@string/scroll_app_bar_summary"
291             app:defaultValue="false" />
292
293         <SwitchPreferenceCompat
294             app:key="@string/bottom_app_bar_key"
295             app:title="@string/bottom_app_bar"
296             app:summary="@string/bottom_app_bar_summary"
297             app:defaultValue="false" />
298
299         <SwitchPreferenceCompat
300             app:key="@string/display_additional_app_bar_icons_key"
301             app:title="@string/display_additional_app_bar_icons"
302             app:summary="@string/display_additional_app_bar_icons_summary"
303             app:defaultValue="false" />
304
305         <ListPreference
306             app:key="@string/app_theme_key"
307             app:title="@string/app_theme"
308             app:entries="@array/app_theme_entries"
309             app:entryValues="@array/app_theme_entry_values"
310             app:defaultValue="@string/app_theme_default_value"
311             app:icon="@drawable/app_theme" />
312
313         <ListPreference
314             app:key="@string/webview_theme_key"
315             app:title="@string/webview_theme"
316             app:entries="@array/webview_theme_entries"
317             app:entryValues="@array/webview_theme_entry_values"
318             app:defaultValue="@string/webview_theme_default_value" />
319
320         <SwitchPreferenceCompat
321             app:key="@string/wide_viewport_key"
322             app:title="@string/wide_viewport_preference"
323             app:summary="@string/wide_viewport_summary"
324             app:defaultValue="true" />
325
326         <SwitchPreferenceCompat
327             app:key="@string/display_webpage_images_key"
328             app:title="@string/display_webpage_images"
329             app:summary="@string/display_webpage_images_summary"
330             app:defaultValue="true" />
331     </PreferenceCategory>
332 </PreferenceScreen>