1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2009 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7          http://www.apache.org/licenses/LICENSE-2.0
8     Unless required by applicable law or agreed to in writing, software
9     distributed under the License is distributed on an "AS IS" BASIS,
10     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11     See the License for the specific language governing permissions and
12     limitations under the License.
13-->
14
15<PreferenceScreen
16    xmlns:android="http://schemas.android.com/apk/res/android"
17    android:title="@string/settings">
18    <PreferenceCategory
19        android:title="@string/clock_settings">
20        <com.android.deskclock.settings.SimpleMenuPreference
21            android:defaultValue="@string/default_clock_style"
22            android:dialogTitle="@string/clock_style"
23            android:entries="@array/clock_style_entries"
24            android:entryValues="@array/clock_style_values"
25            android:key="clock_style"
26            android:title="@string/clock_style" />
27
28        <SwitchPreferenceCompat
29            android:key="display_clock_seconds"
30            android:title="@string/display_clock_seconds_pref" />
31
32        <SwitchPreferenceCompat
33            android:defaultValue="true"
34            android:key="automatic_home_clock"
35            android:summary="@string/automatic_home_clock_summary"
36            android:title="@string/automatic_home_clock" />
37
38        <ListPreference
39            android:dialogTitle="@string/home_time_zone_title"
40            android:entries="@array/timezone_labels"
41            android:entryValues="@array/timezone_values"
42            android:key="home_time_zone"
43            android:title="@string/home_time_zone" />
44
45        <Preference
46            android:key="date_time"
47            android:title="@string/open_date_settings" />
48    </PreferenceCategory>
49
50    <PreferenceCategory
51        android:title="@string/alarm_settings">
52        <ListPreference
53            android:defaultValue="10"
54            android:dialogTitle="@string/auto_silence_title"
55            android:entries="@array/auto_silence_entries"
56            android:entryValues="@array/auto_silence_values"
57            android:key="auto_silence"
58            android:title="@string/auto_silence_title" />
59
60        <ListPreference
61            android:defaultValue="10"
62            android:dialogTitle="@string/snooze_duration_title"
63            android:entries="@array/snooze_duration_entries"
64            android:entryValues="@array/snooze_duration_values"
65            android:key="snooze_duration"
66            android:title="@string/snooze_duration_title" />
67
68        <com.android.deskclock.settings.AlarmVolumePreference
69            android:key="volume_setting"
70            android:layout="@layout/alarm_volume_preference"
71            android:title="@string/alarm_volume_title" />
72
73        <ListPreference
74            android:defaultValue="0"
75            android:dialogTitle="@string/crescendo_duration_title"
76            android:entries="@array/crescendo_entries"
77            android:entryValues="@array/crescendo_values"
78            android:key="alarm_crescendo_duration"
79            android:title="@string/crescendo_duration_title" />
80
81        <com.android.deskclock.settings.SimpleMenuPreference
82            android:defaultValue="0"
83            android:dialogTitle="@string/volume_button_setting_title"
84            android:entries="@array/volume_button_setting_entries"
85            android:entryValues="@array/volume_button_setting_values"
86            android:key="volume_button_setting"
87            android:title="@string/volume_button_setting_title" />
88
89        <com.android.deskclock.settings.SimpleMenuPreference
90            android:dialogTitle="@string/week_start_title"
91            android:entries="@array/week_start_entries"
92            android:entryValues="@array/week_start_values"
93            android:key="week_start"
94            android:title="@string/week_start_title" />
95    </PreferenceCategory>
96
97    <PreferenceCategory
98        android:title="@string/timer_settings">
99        <Preference
100            android:key="timer_ringtone"
101            android:title="@string/timer_sound" />
102
103        <ListPreference
104            android:defaultValue="0"
105            android:dialogTitle="@string/crescendo_duration_title"
106            android:entries="@array/crescendo_entries"
107            android:entryValues="@array/crescendo_values"
108            android:key="timer_crescendo_duration"
109            android:title="@string/crescendo_duration_title" />
110
111
112        <SwitchPreferenceCompat
113            android:defaultValue="false"
114            android:key="timer_vibrate"
115            android:title="@string/timer_vibrate_title" />
116    </PreferenceCategory>
117
118</PreferenceScreen>