general_preferences.xml revision 7412b62056858a0c7a3ebc2f1a14f7475d93287c
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:summary="@string/preferences_alerts_vibrateWhen_summary"
72            android:entries="@array/prefEntries_alerts_vibrateWhen"
73            android:entryValues="@array/prefValues_alerts_vibrateWhen"
74            android:defaultValue="@string/prefDefault_alerts_vibrateWhen"
75            android:dialogTitle="@string/prefDialogTitle_vibrateWhen" />
76
77        <CheckBoxPreference
78            android:layout="?android:attr/preferenceLayoutChild"
79            android:key="preferences_alerts_popup"
80            android:defaultValue="false"
81            android:title="@string/preferences_alerts_popup_title" />
82
83        <ListPreference
84            android:key="preferences_default_reminder"
85            android:defaultValue="@string/preferences_default_reminder_default"
86            android:title="@string/preferences_default_reminder_title"
87            android:entries="@array/preferences_default_reminder_labels"
88            android:entryValues="@array/preferences_default_reminder_values"
89            android:dialogTitle="@string/preferences_default_reminder_dialog" />
90    </PreferenceCategory>
91
92</PreferenceScreen>
93