settings.xml 5.65 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2009 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"
    android:title="@string/settings">
Isaac Katzenelson's avatar
Isaac Katzenelson committed
18
19
    <PreferenceCategory
        android:title="@string/clock_settings">
20
        <com.android.deskclock.settings.SimpleMenuPreference
21
22
            android:defaultValue="@string/default_clock_style"
            android:dialogTitle="@string/clock_style"
Isaac Katzenelson's avatar
Isaac Katzenelson committed
23
24
            android:entries="@array/clock_style_entries"
            android:entryValues="@array/clock_style_values"
25
26
            android:key="clock_style"
            android:title="@string/clock_style" />
27

28
29
30
31
        <SwitchPreferenceCompat
            android:key="display_clock_seconds"
            android:title="@string/display_clock_seconds_pref" />

32
        <SwitchPreferenceCompat
33
            android:defaultValue="true"
Isaac Katzenelson's avatar
Isaac Katzenelson committed
34
35
            android:key="automatic_home_clock"
            android:summary="@string/automatic_home_clock_summary"
36
            android:title="@string/automatic_home_clock" />
37

Isaac Katzenelson's avatar
Isaac Katzenelson committed
38
        <ListPreference
39
            android:dialogTitle="@string/home_time_zone_title"
Isaac Katzenelson's avatar
Isaac Katzenelson committed
40
41
            android:entries="@array/timezone_labels"
            android:entryValues="@array/timezone_values"
42
            android:key="home_time_zone"
Isaac Katzenelson's avatar
Isaac Katzenelson committed
43
            android:title="@string/home_time_zone" />
44
45
46
47

        <Preference
            android:key="date_time"
            android:title="@string/open_date_settings" />
Isaac Katzenelson's avatar
Isaac Katzenelson committed
48
    </PreferenceCategory>
49

Isaac Katzenelson's avatar
Isaac Katzenelson committed
50
51
52
    <PreferenceCategory
        android:title="@string/alarm_settings">
        <ListPreference
53
54
            android:defaultValue="10"
            android:dialogTitle="@string/auto_silence_title"
Isaac Katzenelson's avatar
Isaac Katzenelson committed
55
56
            android:entries="@array/auto_silence_entries"
            android:entryValues="@array/auto_silence_values"
57
58
            android:key="auto_silence"
            android:title="@string/auto_silence_title" />
59

60
61
62
63
64
        <ListPreference
            android:defaultValue="10"
            android:dialogTitle="@string/snooze_duration_title"
            android:entries="@array/snooze_duration_entries"
            android:entryValues="@array/snooze_duration_values"
Isaac Katzenelson's avatar
Isaac Katzenelson committed
65
            android:key="snooze_duration"
66
            android:title="@string/snooze_duration_title" />
67

68
        <com.android.deskclock.settings.AlarmVolumePreference
Paul Sliwowski's avatar
Paul Sliwowski committed
69
            android:key="volume_setting"
70
            android:layout="@layout/alarm_volume_preference"
Michael W's avatar
Michael W committed
71
72
            android:title="@string/alarm_volume_title"
            android:icon="@drawable/ic_alarm_small" />
73

74
75
76
77
78
        <ListPreference
            android:defaultValue="0"
            android:dialogTitle="@string/crescendo_duration_title"
            android:entries="@array/crescendo_entries"
            android:entryValues="@array/crescendo_values"
79
            android:key="alarm_crescendo_duration"
80
            android:title="@string/crescendo_duration_title" />
81

82
        <com.android.deskclock.settings.SimpleMenuPreference
83
            android:defaultValue="0"
84
            android:dialogTitle="@string/volume_button_setting_title"
Isaac Katzenelson's avatar
Isaac Katzenelson committed
85
86
            android:entries="@array/volume_button_setting_entries"
            android:entryValues="@array/volume_button_setting_values"
87
88
            android:key="volume_button_setting"
            android:title="@string/volume_button_setting_title" />
89

90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
        <com.android.deskclock.settings.SimpleMenuPreference
            android:defaultValue="0"
            android:dialogTitle="@string/flip_action_title"
            android:entries="@array/action_setting_entries"
            android:entryValues="@array/volume_button_setting_values"
            android:key="flip_action"
            android:title="@string/flip_action_title" />

        <com.android.deskclock.settings.SimpleMenuPreference
            android:defaultValue="0"
            android:dialogTitle="@string/shake_action_title"
            android:entries="@array/action_setting_entries"
            android:entryValues="@array/volume_button_setting_values"
            android:key="shake_action"
            android:title="@string/shake_action_title" />

106
        <com.android.deskclock.settings.SimpleMenuPreference
107
108
            android:dialogTitle="@string/week_start_title"
            android:entries="@array/week_start_entries"
109
110
111
            android:entryValues="@array/week_start_values"
            android:key="week_start"
            android:title="@string/week_start_title" />
Isaac Katzenelson's avatar
Isaac Katzenelson committed
112
    </PreferenceCategory>
Annie Chin's avatar
Annie Chin committed
113
114
115

    <PreferenceCategory
        android:title="@string/timer_settings">
116
        <Preference
Annie Chin's avatar
Annie Chin committed
117
            android:key="timer_ringtone"
James Lemieux's avatar
James Lemieux committed
118
            android:title="@string/timer_sound" />
119

120
121
122
123
124
        <ListPreference
            android:defaultValue="0"
            android:dialogTitle="@string/crescendo_duration_title"
            android:entries="@array/crescendo_entries"
            android:entryValues="@array/crescendo_values"
125
            android:key="timer_crescendo_duration"
126
127
            android:title="@string/crescendo_duration_title" />

Annie Chin's avatar
Annie Chin committed
128

129
        <SwitchPreferenceCompat
130
            android:defaultValue="false"
Annie Chin's avatar
Annie Chin committed
131
            android:key="timer_vibrate"
132
            android:title="@string/timer_vibrate_title" />
Annie Chin's avatar
Annie Chin committed
133
134
    </PreferenceCategory>

135
</PreferenceScreen>