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 <ListPreference 21 android:key="clock_style" 22 android:title="@string/clock_style" 23 android:entries="@array/clock_style_entries" 24 android:entryValues="@array/clock_style_values" 25 android:defaultValue="@string/default_clock_style" 26 android:dialogTitle="@string/clock_style" /> 27 <CheckBoxPreference 28 android:key="automatic_home_clock" 29 android:title="@string/automatic_home_clock" 30 android:summary="@string/automatic_home_clock_summary" 31 android:defaultValue="true" /> 32 <ListPreference 33 android:key="home_time_zone" 34 android:entries="@array/timezone_labels" 35 android:entryValues="@array/timezone_values" 36 android:dialogTitle="@string/home_time_zone_title" 37 android:title="@string/home_time_zone" /> 38 </PreferenceCategory> 39 40 <PreferenceCategory 41 android:title="@string/alarm_settings"> 42 <ListPreference 43 android:key="auto_silence" 44 android:title="@string/auto_silence_title" 45 android:entries="@array/auto_silence_entries" 46 android:entryValues="@array/auto_silence_values" 47 android:defaultValue="10" 48 android:dialogTitle="@string/auto_silence_title" /> 49 50 <com.android.deskclock.SnoozeLengthDialog 51 android:key="snooze_duration" 52 android:title="@string/snooze_duration_title" 53 android:defaultValue="10"/> 54 55 <VolumePreference 56 android:title="@string/alarm_volume_title" 57 android:dialogTitle="@string/alarm_volume_title" 58 android:persistent="false" 59 android:streamType="alarm" /> 60 61 <ListPreference 62 android:key="volume_button_setting" 63 android:title="@string/volume_button_setting_title" 64 android:dialogTitle="@string/volume_button_setting_title" 65 android:entries="@array/volume_button_setting_entries" 66 android:entryValues="@array/volume_button_setting_values" 67 android:defaultValue="0" /> 68 </PreferenceCategory> 69 </PreferenceScreen> 70