summaryrefslogtreecommitdiffstats
path: root/res/xml/launcher_preferences.xml
blob: 45f3b6edc7ff24a9e021c405d026c680acd437a8 (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
<?xml version="1.0" encoding="utf-8"?><!-- Copyright (C) 2015 Google Inc.

     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">
    <SwitchPreference
        android:defaultValue="true"
        android:icon="@drawable/ic_settings_edit"
        android:key="pref_workspace_edit"
        android:persistent="true"
        android:title="@string/settings_edit_allow_title"
        android:summaryOn="@string/settings_edit_allow_summary_on"
        android:summaryOff="@string/settings_edit_allow_summary_off" />

    <PreferenceCategory
        android:key="category_home"
        android:title="@string/settings_category_home">

        <SwitchPreference
            android:defaultValue="@bool/allow_rotation"
            android:icon="@drawable/ic_settings_rotation"
            android:key="pref_allowRotation"
            android:persistent="true"
            android:title="@string/settings_rotation_title" />

        <SwitchPreference
            android:defaultValue="true"
            android:icon="@drawable/ic_settings_swipe_down"
            android:key="pref_expand_statusbar"
            android:persistent="true"
            android:title="@string/statusbar_expand" />

        <SwitchPreference
            android:defaultValue="false"
            android:icon="@drawable/ic_settings_feed"
            android:key="pref_feed_integration"
            android:persistent="true"
            android:title="@string/settings_feed" />

        <SwitchPreference
            android:defaultValue="true"
            android:icon="@drawable/ic_settings_add_shortcut"
            android:key="pref_add_icon_to_home"
            android:persistent="true"
            android:summary="@string/auto_add_shortcuts_description"
            android:title="@string/auto_add_shortcuts_label" />

        <SwitchPreference
            android:defaultValue="true"
            android:icon="@drawable/ic_settings_label_workspace"
            android:key="pref_desktop_show_labels"
            android:persistent="true"
            android:title="@string/desktop_show_labels" />
    </PreferenceCategory>

    <PreferenceCategory android:title="@string/settings_category_drawer">

        <SwitchPreference
            android:defaultValue="true"
            android:icon="@drawable/ic_settings_predictive"
            android:key="pref_predictive_apps"
            android:persistent="true"
            android:summaryOff="@string/predictive_apps_summary_off"
            android:summaryOn="@string/predictive_apps_summary_on"
            android:title="@string/predictive_apps_title" />

        <SwitchPreference
            android:defaultValue="true"
            android:icon="@drawable/ic_settings_label_drawer"
            android:key="pref_drawer_show_labels"
            android:persistent="true"
            android:title="@string/drawer_show_labels" />
    </PreferenceCategory>

    <PreferenceCategory
        android:key="category_icons"
        android:title="@string/settings_category_icons">

        <ListPreference
            android:defaultValue="@string/icon_shape_default"
            android:entries="@array/icon_shape_entries"
            android:entryValues="@array/icon_shape_paths"
            android:icon="@drawable/ic_settings_shape"
            android:key="pref_override_icon_shape"
            android:persistent="false"
            android:summary="%s"
            android:title="@string/settings_icon_shape" />

        <com.android.launcher3.views.ButtonPreference
            android:key="pref_icon_badging"
            android:title="@string/icon_badging_title"
            android:persistent="false"
            android:icon="@drawable/ic_settings_notification"
            android:widgetLayout="@layout/notification_pref_warning" >
            <intent android:action="android.settings.NOTIFICATION_SETTINGS">
                <!-- This extra highlights the "Allow icon badges" field in Notification settings -->
                <extra
                    android:name=":settings:fragment_args_key"
                    android:value="notification_badging" />
            </intent>
        </com.android.launcher3.views.ButtonPreference>
    </PreferenceCategory>
</PreferenceScreen>