advanced_preferences.xml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright (C) 2008 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. <CheckBoxPreference
  39. android:key="allow_apptabs"
  40. android:defaultValue="false"
  41. android:title="@string/pref_allow_apptabs" />
  42. <ListPreference
  43. android:key="plugin_state"
  44. android:title="@string/pref_content_plugins"
  45. android:defaultValue="ON"
  46. android:entries="@array/pref_content_plugins_choices"
  47. android:entryValues="@array/pref_content_plugins_values"
  48. android:dialogTitle="@string/pref_content_plugins" />
  49. <PreferenceScreen
  50. android:key="website_settings"
  51. android:title="@string/pref_extras_website_settings"
  52. android:summary="@string/pref_extras_website_settings_summary" />
  53. <PreferenceCategory android:title="@string/pref_content_title">
  54. <ListPreference
  55. android:key="default_zoom"
  56. android:title="@string/pref_default_zoom"
  57. android:defaultValue="MEDIUM"
  58. android:entries="@array/pref_default_zoom_choices"
  59. android:entryValues="@array/pref_default_zoom_values"
  60. android:dialogTitle="@string/pref_default_zoom_dialogtitle" />
  61. <CheckBoxPreference
  62. android:key="load_page"
  63. android:defaultValue="true"
  64. android:title="@string/pref_content_load_page"
  65. android:summary="@string/pref_content_load_page_summary" />
  66. <CheckBoxPreference
  67. android:key="autofit_pages"
  68. android:defaultValue="true"
  69. android:title="@string/pref_content_autofit"
  70. android:summary="@string/pref_content_autofit_summary" />
  71. <CheckBoxPreference
  72. android:key="block_popup_windows"
  73. android:defaultValue="true"
  74. android:title="@string/pref_content_block_popups" />
  75. <ListPreference
  76. android:key="default_text_encoding"
  77. android:title="@string/pref_default_text_encoding"
  78. android:defaultValue="@string/pref_default_text_encoding_default"
  79. android:entries="@array/pref_default_text_encoding_choices"
  80. android:entryValues="@array/pref_default_text_encoding_values"
  81. android:dialogTitle="@string/pref_default_text_encoding_dialogtitle" />
  82. </PreferenceCategory>
  83. <PreferenceCategory android:title="@string/pref_extras_reset_default_title">
  84. <com.android.browser.BrowserYesNoPreference
  85. android:key="reset_default_preferences"
  86. android:title="@string/pref_extras_reset_default"
  87. android:summary="@string/pref_extras_reset_default_summary"
  88. android:dialogMessage="@string/pref_extras_reset_default_dlg"
  89. android:dialogIcon="@android:drawable/ic_dialog_alert" />
  90. </PreferenceCategory>
  91. </PreferenceScreen>