browser_preferences.xml revision afc7480077e2e96815ed06652e7ef7030c306369
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2008 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<PreferenceScreen
18        xmlns:android="http://schemas.android.com/apk/res/android">
19
20    <PreferenceCategory
21            android:title="@string/pref_content_title">  
22
23        <ListPreference
24                android:key="text_size"
25                android:title="@string/pref_text_size"
26                android:defaultValue="NORMAL"
27                android:entries="@array/pref_text_size_choices"
28                android:entryValues="@array/pref_text_size_values"
29                android:dialogTitle="@string/pref_text_size_dialogtitle" />
30
31        <ListPreference
32                android:key="default_zoom"
33                android:title="@string/pref_default_zoom"
34                android:defaultValue="MEDIUM"
35                android:entries="@array/pref_default_zoom_choices"
36                android:entryValues="@array/pref_default_zoom_values"
37                android:dialogTitle="@string/pref_default_zoom_dialogtitle" />
38
39        <CheckBoxPreference
40                android:key="load_page"
41                android:defaultValue="true"
42                android:title="@string/pref_content_load_page"
43                android:summary="@string/pref_content_load_page_summary" />
44
45        <ListPreference
46                android:key="default_text_encoding"
47                android:title="@string/pref_default_text_encoding"
48                android:defaultValue="@string/pref_default_text_encoding_default"
49                android:entries="@array/pref_default_text_encoding_choices"
50                android:entryValues="@array/pref_default_text_encoding_values"
51                android:dialogTitle="@string/pref_default_text_encoding_dialogtitle" />
52
53        <CheckBoxPreference
54                android:key="block_popup_windows"
55                android:defaultValue="true"
56                android:title="@string/pref_content_block_popups" /> 
57
58        <CheckBoxPreference
59                android:key="load_images"
60                android:defaultValue="true"
61                android:title="@string/pref_content_load_images"
62                android:summary="@string/pref_content_load_images_summary" />   
63
64        <CheckBoxPreference
65                android:key="autofit_pages"
66                android:defaultValue="true"
67                android:title="@string/pref_content_autofit"
68                android:summary="@string/pref_content_autofit_summary" />  
69
70        <CheckBoxPreference
71                android:key="landscape_only"
72                android:defaultValue="false"
73                android:title="@string/pref_content_landscape_only"
74                android:summary="@string/pref_content_landscape_only_summary" />
75
76        <CheckBoxPreference
77                android:key="enable_javascript"
78                android:defaultValue="true"
79                android:title="@string/pref_content_javascript" />     
80
81        <CheckBoxPreference
82                android:key="enable_plugins"
83                android:defaultValue="true"
84                android:title="@string/pref_content_plugins" />
85
86        <CheckBoxPreference
87                android:key="open_in_background"
88                android:defaultValue="false"
89                android:title="@string/pref_content_open_in_background"
90                android:summary="@string/pref_content_open_in_background_summary" />
91
92        <com.android.browser.BrowserHomepagePreference
93                android:key="homepage" 
94                android:title="@string/pref_content_homepage"
95                android:hint="@string/http"
96                android:inputType="textUri"
97                android:singleLine="true" />
98
99    </PreferenceCategory>
100
101    <PreferenceCategory
102            android:title="@string/pref_privacy_title">
103            
104        <com.android.browser.BrowserYesNoPreference
105                android:key="privacy_clear_cache"
106                android:title="@string/pref_privacy_clear_cache"
107                android:summary="@string/pref_privacy_clear_cache_summary"
108                android:dialogMessage="@string/pref_privacy_clear_cache_dlg" 
109                android:dialogTitle="@string/clear" 
110                android:dialogIcon="@android:drawable/ic_dialog_alert" />
111                
112        <com.android.browser.BrowserYesNoPreference
113                android:key="privacy_clear_history"
114                android:title="@string/pref_privacy_clear_history"
115                android:summary="@string/pref_privacy_clear_history_summary"
116                android:dialogMessage="@string/pref_privacy_clear_history_dlg" 
117                android:dialogTitle="@string/clear" 
118                android:dialogIcon="@android:drawable/ic_dialog_alert"/>
119
120        <CheckBoxPreference
121                android:key="accept_cookies"
122                android:defaultValue="true"
123                android:title="@string/pref_security_accept_cookies"
124                android:summary="@string/pref_security_accept_cookies_summary" />
125                
126        <com.android.browser.BrowserYesNoPreference
127                android:key="privacy_clear_cookies"
128                android:title="@string/pref_privacy_clear_cookies"
129                android:summary="@string/pref_privacy_clear_cookies_summary"
130                android:dialogMessage="@string/pref_privacy_clear_cookies_dlg" 
131                android:dialogTitle="@string/clear" 
132                android:dialogIcon="@android:drawable/ic_dialog_alert"/>
133
134        <CheckBoxPreference
135                android:key="save_formdata"
136                android:defaultValue="true"
137                android:title="@string/pref_security_save_form_data"
138                android:summary="@string/pref_security_save_form_data_summary" />
139
140        <com.android.browser.BrowserYesNoPreference
141                android:key="privacy_clear_form_data"
142                android:title="@string/pref_privacy_clear_form_data"
143                android:summary="@string/pref_privacy_clear_form_data_summary"
144                android:dialogMessage="@string/pref_privacy_clear_form_data_dlg" 
145                android:dialogTitle="@string/clear" 
146                android:dialogIcon="@android:drawable/ic_dialog_alert"/>
147
148        <CheckBoxPreference
149                android:key="enable_geolocation"
150                android:defaultValue="true"
151                android:title="@string/pref_privacy_enable_geolocation"
152                android:summary="@string/pref_privacy_enable_geolocation_summary" />
153
154        <com.android.browser.BrowserYesNoPreference
155                android:key="privacy_clear_geolocation_access"
156                android:dependency="enable_geolocation"
157                android:title="@string/pref_privacy_clear_geolocation_access"
158                android:summary="@string/pref_privacy_clear_geolocation_access_summary"
159                android:dialogMessage="@string/pref_privacy_clear_geolocation_access_dlg"
160                android:dialogTitle="@string/clear"
161                android:dialogIcon="@android:drawable/ic_dialog_alert"/>
162
163    </PreferenceCategory>
164    
165        <PreferenceCategory
166            android:title="@string/pref_security_title">
167            
168        <CheckBoxPreference
169                android:key="remember_passwords"
170                android:defaultValue="true"
171                android:title="@string/pref_security_remember_passwords"
172                android:summary="@string/pref_security_remember_passwords_summary" />
173
174        <com.android.browser.BrowserYesNoPreference
175                android:key="privacy_clear_passwords"
176                android:title="@string/pref_privacy_clear_passwords"
177                android:summary="@string/pref_privacy_clear_passwords_summary"
178                android:dialogMessage="@string/pref_privacy_clear_passwords_dlg" 
179                android:dialogTitle="@string/clear" 
180                android:dialogIcon="@android:drawable/ic_dialog_alert"/>
181                
182        <CheckBoxPreference
183                android:key="show_security_warnings"
184                android:defaultValue="true"
185                android:title="@string/pref_security_show_security_warning"
186                android:summary="@string/pref_security_show_security_warning_summary" />
187
188            
189    </PreferenceCategory>
190    <PreferenceCategory
191            android:title="@string/pref_extras_title">
192
193            <PreferenceScreen
194                  android:key="website_settings"
195                  android:title="@string/pref_extras_website_settings"
196                  android:summary="@string/pref_extras_website_settings_summary" />
197
198            <com.android.browser.BrowserYesNoPreference
199                    android:key="reset_default_preferences"
200                    android:title="@string/pref_extras_reset_default"
201                    android:summary="@string/pref_extras_reset_default_summary"
202                    android:dialogMessage="@string/pref_extras_reset_default_dlg" 
203                    android:dialogTitle="@string/pref_extras_reset_default_dlg_title" 
204                    android:dialogIcon="@android:drawable/ic_dialog_alert" />
205    </PreferenceCategory>
206</PreferenceScreen>
207