OSDN Git Service

am cf849950: Fix 1970279. Like "Go", search key should get the current url and pre...
[android-x86/packages-apps-Browser.git] / res / xml / browser_preferences.xml
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         <ListPreference
40                 android:key="default_text_encoding"
41                 android:title="@string/pref_default_text_encoding"
42                 android:defaultValue="@string/pref_default_text_encoding_default"
43                 android:entries="@array/pref_default_text_encoding_choices"
44                 android:entryValues="@array/pref_default_text_encoding_values"
45                 android:dialogTitle="@string/pref_default_text_encoding_dialogtitle" />
46
47         <CheckBoxPreference
48                 android:key="block_popup_windows"
49                 android:defaultValue="true"
50                 android:title="@string/pref_content_block_popups" /> 
51
52         <CheckBoxPreference
53                 android:key="load_images"
54                 android:defaultValue="true"
55                 android:title="@string/pref_content_load_images"
56                 android:summary="@string/pref_content_load_images_summary" />   
57
58         <CheckBoxPreference
59                 android:key="autofit_pages"
60                 android:defaultValue="true"
61                 android:title="@string/pref_content_autofit"
62                 android:summary="@string/pref_content_autofit_summary" />  
63
64         <CheckBoxPreference
65                 android:key="landscape_only"
66                 android:defaultValue="false"
67                 android:title="@string/pref_content_landscape_only"
68                 android:summary="@string/pref_content_landscape_only_summary" />
69
70         <CheckBoxPreference
71                 android:key="enable_javascript"
72                 android:defaultValue="true"
73                 android:title="@string/pref_content_javascript" />     
74             
75         <CheckBoxPreference
76                 android:key="open_in_background"
77                 android:defaultValue="false"
78                 android:title="@string/pref_content_open_in_background"
79                 android:summary="@string/pref_content_open_in_background_summary" />
80
81         <com.android.browser.BrowserHomepagePreference
82                 android:key="homepage" 
83                 android:title="@string/pref_content_homepage"
84                 android:hint="@string/http"
85                 android:inputType="textUri"
86                 android:singleLine="true" />
87
88     </PreferenceCategory>
89
90     <PreferenceCategory
91             android:title="@string/pref_privacy_title">
92             
93         <com.android.browser.BrowserYesNoPreference
94                 android:key="privacy_clear_cache"
95                 android:title="@string/pref_privacy_clear_cache"
96                 android:summary="@string/pref_privacy_clear_cache_summary"
97                 android:dialogMessage="@string/pref_privacy_clear_cache_dlg" 
98                 android:dialogTitle="@string/clear" 
99                 android:dialogIcon="@android:drawable/ic_dialog_alert" />
100                 
101         <com.android.browser.BrowserYesNoPreference
102                 android:key="privacy_clear_history"
103                 android:title="@string/pref_privacy_clear_history"
104                 android:summary="@string/pref_privacy_clear_history_summary"
105                 android:dialogMessage="@string/pref_privacy_clear_history_dlg" 
106                 android:dialogTitle="@string/clear" 
107                 android:dialogIcon="@android:drawable/ic_dialog_alert"/>
108
109         <CheckBoxPreference
110                 android:key="accept_cookies"
111                 android:defaultValue="true"
112                 android:title="@string/pref_security_accept_cookies"
113                 android:summary="@string/pref_security_accept_cookies_summary" />
114                 
115         <com.android.browser.BrowserYesNoPreference
116                 android:key="privacy_clear_cookies"
117                 android:title="@string/pref_privacy_clear_cookies"
118                 android:summary="@string/pref_privacy_clear_cookies_summary"
119                 android:dialogMessage="@string/pref_privacy_clear_cookies_dlg" 
120                 android:dialogTitle="@string/clear" 
121                 android:dialogIcon="@android:drawable/ic_dialog_alert"/>
122
123         <CheckBoxPreference
124                 android:key="save_formdata"
125                 android:defaultValue="true"
126                 android:title="@string/pref_security_save_form_data"
127                 android:summary="@string/pref_security_save_form_data_summary" />
128
129         <com.android.browser.BrowserYesNoPreference
130                 android:key="privacy_clear_form_data"
131                 android:title="@string/pref_privacy_clear_form_data"
132                 android:summary="@string/pref_privacy_clear_form_data_summary"
133                 android:dialogMessage="@string/pref_privacy_clear_form_data_dlg" 
134                 android:dialogTitle="@string/clear" 
135                 android:dialogIcon="@android:drawable/ic_dialog_alert"/>
136
137         <!-- below preferences will be shown when html5 location is implemented -->
138         <!--
139
140         <CheckBoxPreference
141                 android:key="request_location"
142                 android:defaultValue="true"
143                 android:title="@string/pref_privacy_request_location"
144                 android:summary="@string/pref_privacy_request_location_summary" />
145
146         <com.android.browser.BrowserYesNoPreference
147                 android:key="privacy_clear_location_requests"
148                 android:title="@string/pref_privacy_clear_location_requests"
149                 android:summary="@string/pref_privacy_clear_location_requests_summary"
150                 android:dialogMessage="@string/pref_privacy_clear_location_requests_dlg"
151                 android:dialogTitle="@string/clear"
152                 android:dialogIcon="@android:drawable/ic_dialog_alert"/>
153         -->
154
155     </PreferenceCategory>
156     
157         <PreferenceCategory
158             android:title="@string/pref_security_title">
159             
160         <CheckBoxPreference
161                 android:key="remember_passwords"
162                 android:defaultValue="true"
163                 android:title="@string/pref_security_remember_passwords"
164                 android:summary="@string/pref_security_remember_passwords_summary" />
165
166         <com.android.browser.BrowserYesNoPreference
167                 android:key="privacy_clear_passwords"
168                 android:title="@string/pref_privacy_clear_passwords"
169                 android:summary="@string/pref_privacy_clear_passwords_summary"
170                 android:dialogMessage="@string/pref_privacy_clear_passwords_dlg" 
171                 android:dialogTitle="@string/clear" 
172                 android:dialogIcon="@android:drawable/ic_dialog_alert"/>
173                 
174         <CheckBoxPreference
175                 android:key="show_security_warnings"
176                 android:defaultValue="true"
177                 android:title="@string/pref_security_show_security_warning"
178                 android:summary="@string/pref_security_show_security_warning_summary" />
179
180             
181     </PreferenceCategory>
182     <PreferenceCategory
183             android:title="@string/pref_extras_title">
184                      
185             <!-- This setting is named "Enable Gears" but is actually
186                  tied to enabling all plugins. -->
187             <CheckBoxPreference
188                     android:key="enable_plugins"
189                     android:defaultValue="true"
190                     android:title="@string/pref_extras_gears_enable"
191                     android:summary="@string/pref_extras_gears_enable_summary" />
192
193             <Preference
194                     android:key="gears_settings"
195                     android:persistent="false"
196                     android:dependency="enable_plugins"
197                     android:title="@string/pref_extras_gears_settings"
198                     android:summary="@string/pref_extras_gears_settings_summary" />
199
200             <PreferenceScreen
201                   android:key="website_settings"
202                   android:title="@string/pref_extras_website_settings"
203                   android:summary="@string/pref_extras_website_settings_summary" />
204
205             <com.android.browser.BrowserYesNoPreference
206                     android:key="reset_default_preferences"
207                     android:title="@string/pref_extras_reset_default"
208                     android:summary="@string/pref_extras_reset_default_summary"
209                     android:dialogMessage="@string/pref_extras_reset_default_dlg" 
210                     android:dialogTitle="@string/pref_extras_reset_default_dlg_title" 
211                     android:dialogIcon="@android:drawable/ic_dialog_alert" />
212     </PreferenceCategory>
213 </PreferenceScreen>