advanced_preferences.xml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright (C) 2012 The Android Open Source Project
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. -->
  13. <PreferenceScreen
  14. xmlns:android="http://schemas.android.com/apk/res/android">
  15. <!-- Entries and values in this list are set dynamically. -->
  16. <com.android.browser.search.SearchEnginePreference
  17. android:key="search_engine"
  18. android:title="@string/pref_content_search_engine"
  19. android:defaultValue="duckduckgo"
  20. android:summary="@string/pref_content_search_engine_summary"
  21. android:dialogTitle="@string/pref_content_search_engine" />
  22. <ListPreference
  23. android:key="user_agent"
  24. android:title="@string/pref_content_ua"
  25. android:summary="@string/pref_content_ua_summary"
  26. android:entries="@array/pref_content_ua_choices"
  27. android:entryValues="@array/pref_content_ua_values"
  28. android:defaultValue="0"/>
  29. <CheckBoxPreference
  30. android:key="open_in_background"
  31. android:defaultValue="false"
  32. android:title="@string/pref_content_open_in_background"
  33. android:summary="@string/pref_content_open_in_background_summary" />
  34. <CheckBoxPreference
  35. android:key="enable_javascript"
  36. android:defaultValue="true"
  37. android:title="@string/pref_content_javascript" />
  38. <ListPreference
  39. android:key="plugin_state"
  40. android:title="@string/pref_content_plugins"
  41. android:defaultValue="ON"
  42. android:entries="@array/pref_content_plugins_choices"
  43. android:entryValues="@array/pref_content_plugins_values"
  44. android:dialogTitle="@string/pref_content_plugins" />
  45. <PreferenceScreen
  46. android:key="website_settings"
  47. android:title="@string/pref_extras_website_settings"
  48. android:summary="@string/pref_extras_website_settings_summary" />
  49. <PreferenceCategory android:title="@string/pref_content_title">
  50. <ListPreference
  51. android:key="default_zoom"
  52. android:title="@string/pref_default_zoom"
  53. android:defaultValue="MEDIUM"
  54. android:entries="@array/pref_default_zoom_choices"
  55. android:entryValues="@array/pref_default_zoom_values"
  56. android:dialogTitle="@string/pref_default_zoom_dialogtitle" />
  57. <CheckBoxPreference
  58. android:key="load_page"
  59. android:defaultValue="true"
  60. android:title="@string/pref_content_load_page"
  61. android:summary="@string/pref_content_load_page_summary" />
  62. <CheckBoxPreference
  63. android:key="autofit_pages"
  64. android:defaultValue="true"
  65. android:title="@string/pref_content_autofit"
  66. android:summary="@string/pref_content_autofit_summary" />
  67. <CheckBoxPreference
  68. android:key="block_popup_windows"
  69. android:defaultValue="true"
  70. android:title="@string/pref_content_block_popups" />
  71. <ListPreference
  72. android:key="default_text_encoding"
  73. android:title="@string/pref_default_text_encoding"
  74. android:defaultValue="@string/pref_default_text_encoding_default"
  75. android:entries="@array/pref_default_text_encoding_choices"
  76. android:entryValues="@array/pref_default_text_encoding_values"
  77. android:dialogTitle="@string/pref_default_text_encoding_dialogtitle" />
  78. </PreferenceCategory>
  79. <PreferenceCategory android:title="@string/pref_extras_reset_default_title">
  80. <com.android.browser.BrowserYesNoPreference
  81. android:key="reset_default_preferences"
  82. android:title="@string/pref_extras_reset_default"
  83. android:summary="@string/pref_extras_reset_default_summary"
  84. android:dialogMessage="@string/pref_extras_reset_default_dlg"
  85. android:dialogIcon="@android:drawable/ic_dialog_alert" />
  86. </PreferenceCategory>
  87. </PreferenceScreen>