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