1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2008 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 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15 --> 16 17 <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> 18 <PreferenceCategory android:title="@string/preferences_general_title"> 19 <CheckBoxPreference 20 android:key="preferences_hide_declined" 21 android:defaultValue="false" 22 android:title="@string/preferences_hide_declined_title" /> 23 <CheckBoxPreference 24 android:key="preferences_show_week_num" 25 android:defaultValue="false" 26 android:title="@string/preferences_show_week_num_title" /> 27 <ListPreference 28 android:key="preferences_week_start_day" 29 android:defaultValue="@string/preferences_week_start_day_default" 30 android:title="@string/preferences_week_start_day_title" 31 android:entries="@array/preferences_week_start_day_labels" 32 android:entryValues="@array/preferences_week_start_day_values" 33 android:dialogTitle="@string/preferences_week_start_day_dialog" /> 34 <CheckBoxPreference 35 android:key="preferences_home_tz_enabled" 36 android:defaultValue="false" 37 android:title="@string/preferences_use_home_tz_title" 38 android:summary="@string/preferences_use_home_tz_descrip" /> 39 <ListPreference 40 android:key="preferences_home_tz" 41 android:dependency="preferences_home_tz_enabled" 42 android:defaultValue="@string/preferences_home_tz_default" 43 android:title="@string/preferences_home_tz_title" 44 android:entries="@array/timezone_labels" 45 android:entryValues="@array/timezone_values" 46 android:dialogTitle="@string/preferences_home_tz_title" /> 47 <PreferenceScreen 48 android:key="preferences_clear_search_history" 49 android:title="@string/preferences_clear_search_history_title" 50 android:summary="@string/preferences_clear_search_history_summary" /> 51 </PreferenceCategory> 52 <PreferenceCategory 53 android:key="preferences_alerts_category" 54 android:title="@string/preferences_reminder_title"> 55 <CheckBoxPreference 56 android:key="preferences_alerts" 57 android:defaultValue="true" 58 android:title="@string/preferences_alerts_title" /> 59 60 <RingtonePreference 61 android:layout="?android:attr/preferenceLayoutChild" 62 android:key="preferences_alerts_ringtone" 63 android:title="@string/preferences_alerts_ringtone_title" 64 android:ringtoneType="notification" 65 android:defaultValue="content://settings/system/notification_sound" /> 66 67 <ListPreference 68 android:layout="?android:attr/preferenceLayoutChild" 69 android:key="preferences_alerts_vibrateWhen" 70 android:title="@string/preferences_alerts_vibrateWhen_title" 71 android:entries="@array/prefEntries_alerts_vibrateWhen" 72 android:entryValues="@array/prefValues_alerts_vibrateWhen" 73 android:defaultValue="@string/prefDefault_alerts_vibrateWhen" 74 android:dialogTitle="@string/prefDialogTitle_vibrateWhen" /> 75 76 <CheckBoxPreference 77 android:layout="?android:attr/preferenceLayoutChild" 78 android:key="preferences_alerts_popup" 79 android:defaultValue="false" 80 android:title="@string/preferences_alerts_popup_title" /> 81 82 <ListPreference 83 android:key="preferences_default_reminder" 84 android:defaultValue="@string/preferences_default_reminder_default" 85 android:title="@string/preferences_default_reminder_title" 86 android:entries="@array/preferences_default_reminder_labels" 87 android:entryValues="@array/preferences_default_reminder_values" 88 android:dialogTitle="@string/preferences_default_reminder_dialog" /> 89 </PreferenceCategory> 90 91 </PreferenceScreen> 92