summaryrefslogtreecommitdiffstats
path: root/res/xml/general_preferences.xml
blob: 7571a6a13299d897f927c1b6afac4ea67a611956 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2008 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->

<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">

    <PreferenceCategory
        android:layout="@layout/swe_preference_category_first"
        android:title="@string/pref_general_title">
        <com.android.browser.preferences.NonformattingListPreference
            android:layout="@layout/swe_preference"
            android:widgetLayout="@layout/swe_preference_list_widget"
            android:key="homepage_picker"
            android:entries="@array/pref_homepage_choices"
            android:entryValues="@array/pref_homepage_values"
            android:title="@string/pref_content_homepage" />

        <com.android.browser.search.SearchEnginePreference
            android:layout="@layout/swe_preference"
            android:widgetLayout="@layout/swe_preference_list_widget"
            android:defaultValue="@string/default_search_engine_value"
            android:dialogTitle="@string/pref_content_search_engine"
            android:key="search_engine"
            android:summary="@string/pref_content_search_engine_summary"
            android:title="@string/pref_content_search_engine" />

        <SwitchPreference
            android:layout="@layout/swe_preference"
            android:defaultValue="false"
            android:key="fullscreen"
            android:summary="@string/pref_lab_fullscreen_summary"
            android:title="@string/pref_lab_fullscreen" />

        <SwitchPreference
            android:layout="@layout/swe_preference"
            android:defaultValue="false"
            android:key="powersave_enabled"
            android:summary="@string/pref_powersave_enabled_summary"
            android:title="@string/pref_powersave_enabled" />

        <SwitchPreference
            android:layout="@layout/swe_preference"
            android:defaultValue="false"
            android:key="nightmode_enabled"
            android:summary="@string/pref_nightmode_enabled_summary"
            android:title="@string/pref_nightmode_enabled" />

        <SwitchPreference
            android:layout="@layout/swe_preference"
            android:key="autofill_enabled"
            android:title="@string/pref_autofill_enabled"
            android:summary="@string/pref_autofill_enabled_summary"
            android:defaultValue="true" />

        <PreferenceScreen
            android:layout="@layout/swe_preference"
            android:key="autofill_profile"
            android:title="@string/pref_autofill_profile_editor"
            android:summary="@string/pref_autofill_profile_editor_summary" />
    </PreferenceCategory>

    <PreferenceCategory android:title="@string/pref_extras_title"
        android:layout="@layout/swe_preference_category"
        android:key="advanced">

        <PreferenceScreen android:title="@string/pref_privacy_security_title"
            android:summary="@string/pref_privacy_security_title_summary"
            android:layout="@layout/swe_preference"
            android:key="privacy_security" />

        <PreferenceScreen
            android:layout="@layout/swe_preference"
            android:key="accessibility_menu"
            android:summary="@string/pref_accessibility_title_summary"
            android:title="@string/pref_accessibility_title"/>


        <PreferenceScreen android:title="@string/pref_content_title"
            android:summary="@string/pref_content_title_summary"
            android:layout="@layout/swe_preference"
            android:key="content_settings" />

        <ListPreference
            android:layout="@layout/swe_preference"
            android:widgetLayout="@layout/swe_preference_list_widget"
            android:dialogTitle="@string/pref_edge_swipe_option_msg"
            android:entries="@array/pref_edge_swiping_choices"
            android:entryValues="@array/pref_edge_swiping_values"
            android:summary="%s"
            android:key="edge_swiping_action"
            android:title="@string/pref_edge_swipe_title" />

        <com.android.browser.BrowserYesNoPreference
            android:layout="@layout/swe_preference"
            android:key="reset_default_preferences"
            android:title="@string/pref_extras_reset_default"
            android:summary="@string/pref_extras_reset_default_summary"
            android:dialogMessage="@string/pref_extras_reset_default_dlg"
            android:dialogIcon="@android:drawable/ic_dialog_alert" />

        <PreferenceScreen
            android:layout="@layout/swe_preference"
            android:key="debug_menu"
            android:title="@string/pref_development_title" />
    </PreferenceCategory>
</PreferenceScreen>