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