general_preferences.xml revision 4ad6302749749149766dcca599380b8f06fa0f12
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        <ListPreference
24            android:key="preferences_week_start_day"
25            android:defaultValue="@string/preferences_week_start_day_default"
26            android:title="@string/preferences_week_start_day_title"
27            android:entries="@array/preferences_week_start_day_labels"
28            android:entryValues="@array/preferences_week_start_day_values"
29            android:dialogTitle="@string/preferences_week_start_day_dialog" />
30        <PreferenceScreen
31            android:key="preferences_clear_search_history"
32            android:title="@string/preferences_clear_search_history_title"
33            android:summary="@string/preferences_clear_search_history_summary" />
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    </PreferenceCategory>
48
49    <PreferenceCategory android:title="@string/preferences_reminder_title">
50        <CheckBoxPreference
51            android:key="preferences_alerts"
52            android:defaultValue="true"
53            android:title="@string/preferences_alerts_title" />
54
55        <RingtonePreference
56            android:layout="?android:attr/preferenceLayoutChild"
57            android:key="preferences_alerts_ringtone"
58            android:title="@string/preferences_alerts_ringtone_title"
59            android:ringtoneType="notification"
60            android:defaultValue="content://settings/system/notification_sound" />
61
62        <ListPreference
63            android:layout="?android:attr/preferenceLayoutChild"
64            android:key="preferences_alerts_vibrateWhen"
65            android:title="@string/preferences_alerts_vibrateWhen_title"
66            android:summary="@string/preferences_alerts_vibrateWhen_summary"
67            android:entries="@array/prefEntries_alerts_vibrateWhen"
68            android:entryValues="@array/prefValues_alerts_vibrateWhen"
69            android:defaultValue="@string/prefDefault_alerts_vibrateWhen"
70            android:dialogTitle="@string/prefDialogTitle_vibrateWhen" />
71
72        <CheckBoxPreference
73            android:layout="?android:attr/preferenceLayoutChild"
74            android:key="preferences_alerts_popup"
75            android:defaultValue="false"
76            android:title="@string/preferences_alerts_popup_title" />
77
78        <ListPreference
79            android:key="preferences_default_reminder"
80            android:defaultValue="@string/preferences_default_reminder_default"
81            android:title="@string/preferences_default_reminder_title"
82            android:entries="@array/preferences_default_reminder_labels"
83            android:entryValues="@array/preferences_default_reminder_values"
84            android:dialogTitle="@string/preferences_default_reminder_dialog" />
85    </PreferenceCategory>
86
87</PreferenceScreen>
88