]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blob - main/res/xml/preferences.xml
Add an option to delete all domain settings at once. https://redmine.stoutner.com...
[PrivacyBrowserAndroid.git] / main / res / xml / preferences.xml
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <!--
4   Copyright © 2016-2022 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 xmlns:android="http://schemas.android.com/apk/res/android">
22     <PreferenceCategory
23         android:key="privacy"
24         android:title="@string/privacy" >
25
26         <SwitchPreference
27             android:key="javascript"
28             android:title="@string/javascript"
29             android:summary="@string/javascript_preference_summary"
30             android:defaultValue="false" />
31
32         <SwitchPreference
33             android:key="cookies"
34             android:title="@string/cookies"
35             android:summary="@string/cookies_preference_summary"
36             android:defaultValue="false" />
37
38         <SwitchPreference
39             android:key="dom_storage"
40             android:title="@string/dom_storage_preference"
41             android:summary="@string/dom_storage_preference_summary"
42             android:defaultValue="false" />
43
44         <!-- Save form data can be removed once the minimum API >= 26. -->
45         <SwitchPreference
46             android:key="save_form_data"
47             android:title="@string/save_form_data_preference"
48             android:summary="@string/save_form_data_preference_summary"
49             android:defaultValue="false" />
50
51         <ListPreference
52             android:key="user_agent"
53             android:title="@string/user_agent"
54             android:entries="@array/translated_user_agent_names"
55             android:entryValues="@array/user_agent_names"
56             android:defaultValue="@string/user_agent_default_value"
57             android:icon="@drawable/user_agent" />
58
59         <!-- android:inputType="textVisiblePassword" sets the keyboard to have a dedicated number row.-->
60         <EditTextPreference
61             android:key="custom_user_agent"
62             android:title="@string/custom_user_agent"
63             android:defaultValue="@string/custom_user_agent_default_value"
64             android:inputType="textVisiblePassword|textMultiLine" />
65
66         <SwitchPreference
67             android:key="incognito_mode"
68             android:title="@string/incognito_mode"
69             android:summary="@string/incognito_mode_summary"
70             android:defaultValue="false" />
71
72         <SwitchPreference
73             android:key="allow_screenshots"
74             android:title="@string/allow_screenshots"
75             android:summary="@string/allow_screenshots_summary"
76             android:defaultValue="false" />
77     </PreferenceCategory>
78
79     <PreferenceCategory
80         android:key="blocklists"
81         android:title="@string/blocklists" >
82
83         <SwitchPreference
84             android:key="easylist"
85             android:title="@string/easylist"
86             android:summary="@string/easylist_summary"
87             android:defaultValue="true" />
88
89         <SwitchPreference
90             android:key="easyprivacy"
91             android:title="@string/easyprivacy"
92             android:summary="@string/easyprivacy_summary"
93             android:defaultValue="true" />
94
95         <SwitchPreference
96             android:key="fanboys_annoyance_list"
97             android:title="@string/fanboys_annoyance_list"
98             android:summary="@string/fanboys_annoyance_list_summary"
99             android:defaultValue="true" />
100
101         <SwitchPreference
102             android:key="fanboys_social_blocking_list"
103             android:title="@string/fanboys_social_blocking_list"
104             android:summary="@string/fanboys_social_blocking_list_summary"
105             android:defaultValue="true" />
106
107         <SwitchPreference
108             android:key="ultralist"
109             android:title="@string/ultralist"
110             android:summary="@string/ultralist_summary"
111             android:defaultValue="true" />
112
113         <SwitchPreference
114             android:key="ultraprivacy"
115             android:title="@string/ultraprivacy"
116             android:summary="@string/ultraprivacy_summary"
117             android:defaultValue="true" />
118
119         <SwitchPreference
120             android:key="block_all_third_party_requests"
121             android:title="@string/block_all_third_party_requests"
122             android:summary="@string/block_all_third_party_requests_summary"
123             android:defaultValue="false" />
124     </PreferenceCategory>
125
126     <PreferenceCategory
127         android:key="url_modification"
128         android:title="@string/url_modification" >
129
130         <SwitchPreference
131             android:key="tracking_queries"
132             android:title="@string/tracking_queries"
133             android:summary="@string/tracking_queries_summary"
134             android:defaultValue="true" />
135
136         <SwitchPreference
137             android:key="amp_redirects"
138             android:title="@string/amp_redirects"
139             android:summary="@string/amp_redirects_summary"
140             android:defaultValue="true" />
141     </PreferenceCategory>
142
143     <PreferenceCategory
144         android:key="search_category"
145         android:title="@string/search" >
146
147         <ListPreference
148             android:key="search"
149             android:title="@string/search"
150             android:entries="@array/search_entries"
151             android:entryValues="@array/search_entry_values"
152             android:defaultValue="@string/search_default_value"
153             android:icon="@drawable/search" />
154
155         <EditTextPreference
156             android:key="search_custom_url"
157             android:title="@string/search_custom_url"
158             android:defaultValue="@string/search_custom_url_default_value"
159             android:inputType="textUri" />
160     </PreferenceCategory>
161
162     <PreferenceCategory
163         android:key="proxy_category"
164         android:title="@string/proxy" >
165
166         <ListPreference
167             android:key="proxy"
168             android:title="@string/proxy"
169             android:entries="@array/proxy_entries"
170             android:entryValues="@array/proxy_entry_values"
171             android:defaultValue="@string/proxy_default_value" />
172
173         <EditTextPreference
174             android:key="proxy_custom_url"
175             android:title="@string/proxy_custom_url"
176             android:defaultValue="@string/proxy_custom_url_default_value"
177             android:inputType="textUri" />
178     </PreferenceCategory>
179
180     <PreferenceCategory
181         android:key="full_screen"
182         android:title="@string/full_screen" >
183
184         <SwitchPreference
185             android:key="full_screen_browsing_mode"
186             android:title="@string/full_screen_browsing_mode"
187             android:summary="@string/full_screen_browsing_mode_summary"
188             android:defaultValue="false" />
189
190         <SwitchPreference
191             android:key="hide_app_bar"
192             android:title="@string/hide_app_bar"
193             android:summary="@string/hide_app_bar_summary"
194             android:defaultValue="true" />
195     </PreferenceCategory>
196
197     <PreferenceCategory
198         android:key="clear_and_exit"
199         android:title="@string/clear_and_exit" >
200
201         <SwitchPreference
202             android:key="clear_everything"
203             android:title="@string/clear_everything"
204             android:summary="@string/clear_everything_summary"
205             android:defaultValue="true" />
206
207         <SwitchPreference
208             android:key="clear_cookies"
209             android:title="@string/clear_cookies_preference"
210             android:summary="@string/clear_cookies_summary"
211             android:defaultValue="true" />
212
213         <SwitchPreference
214             android:key="clear_dom_storage"
215             android:title="@string/clear_dom_storage_preference"
216             android:summary="@string/clear_dom_storage_summary"
217             android:defaultValue="true" />
218
219         <!-- Clear form data can be removed once the minimum API >= 26. -->
220         <SwitchPreference
221             android:key="clear_form_data"
222             android:title="@string/clear_form_data_preference"
223             android:summary="@string/clear_form_data_summary"
224             android:defaultValue="true" />
225
226         <SwitchPreference
227             android:key="clear_logcat"
228             android:title="@string/clear_logcat_preference"
229             android:summary="@string/clear_logcat_summary"
230             android:defaultValue="true" />
231
232         <SwitchPreference
233             android:key="clear_cache"
234             android:title="@string/clear_cache"
235             android:summary="@string/clear_cache_summary"
236             android:defaultValue="true" />
237     </PreferenceCategory>
238
239     <PreferenceCategory
240         android:key="general"
241         android:title="@string/general" >
242
243         <EditTextPreference
244             android:key="homepage"
245             android:title="@string/homepage"
246             android:defaultValue="@string/homepage_default_value"
247             android:inputType="textUri"
248             android:icon="@drawable/home" />
249
250         <!-- `android:inputType="number"` currently doesn't work with AndroidX. -->
251         <EditTextPreference
252             android:key="font_size"
253             android:title="@string/font_size_preference"
254             android:defaultValue="@string/font_size_default_value"
255             android:inputType="number"
256             android:icon="@drawable/font_size" />
257
258         <SwitchPreference
259             android:key="open_intents_in_new_tab"
260             android:title="@string/open_intents_in_new_tab"
261             android:summary="@string/open_intents_in_new_tab_summary"
262             android:defaultValue="true" />
263
264         <SwitchPreference
265             android:key="swipe_to_refresh"
266             android:title="@string/swipe_to_refresh"
267             android:summary="@string/swipe_to_refresh_summary"
268             android:defaultValue="true" />
269
270         <SwitchPreference
271             android:key="download_with_external_app"
272             android:title="@string/download_with_external_app"
273             android:summary="@string/download_with_external_app_summary"
274             android:defaultValue="false" />
275
276         <SwitchPreference
277             android:key="scroll_app_bar"
278             android:title="@string/scroll_app_bar"
279             android:summary="@string/scroll_app_bar_summary"
280             android:defaultValue="true" />
281
282         <SwitchPreference
283             android:key="bottom_app_bar"
284             android:title="@string/bottom_app_bar"
285             android:summary="@string/bottom_app_bar_summary"
286             android:defaultValue="false" />
287
288         <SwitchPreference
289             android:key="display_additional_app_bar_icons"
290             android:title="@string/display_additional_app_bar_icons"
291             android:summary="@string/display_additional_app_bar_icons_summary"
292             android:defaultValue="false" />
293
294         <ListPreference
295             android:key="app_theme"
296             android:title="@string/app_theme"
297             android:entries="@array/app_theme_entries"
298             android:entryValues="@array/app_theme_entry_values"
299             android:defaultValue="@string/app_theme_default_value"
300             android:icon="@drawable/app_theme" />
301
302         <ListPreference
303             android:key="webview_theme"
304             android:title="@string/webview_theme"
305             android:entries="@array/webview_theme_entries"
306             android:entryValues="@array/webview_theme_entry_values"
307             android:defaultValue="@string/webview_theme_default_value" />
308
309         <SwitchPreference
310             android:key="wide_viewport"
311             android:title="@string/wide_viewport_preference"
312             android:summary="@string/wide_viewport_summary"
313             android:defaultValue="true" />
314
315         <SwitchPreference
316             android:key="display_webpage_images"
317             android:title="@string/display_webpage_images"
318             android:summary="@string/display_webpage_images_summary"
319             android:defaultValue="true" />
320     </PreferenceCategory>
321 </PreferenceScreen>