<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2008 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->

<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
    <PreferenceCategory android:title="@string/preferences_general_title">
        <CheckBoxPreference
            android:key="preferences_hide_declined"
            android:defaultValue="false"
            android:title="@string/preferences_hide_declined_title" />
        <CheckBoxPreference
            android:key="preferences_show_week_num"
            android:defaultValue="false"
            android:title="@string/preferences_show_week_num_title" />
        <ListPreference
            android:key="preferences_week_start_day"
            android:defaultValue="@string/preferences_week_start_day_default"
            android:title="@string/preferences_week_start_day_title"
            android:entries="@array/preferences_week_start_day_labels"
            android:entryValues="@array/preferences_week_start_day_values"
            android:dialogTitle="@string/preferences_week_start_day_dialog" />
        <CheckBoxPreference
            android:key="preferences_home_tz_enabled"
            android:defaultValue="false"
            android:title="@string/preferences_use_home_tz_title"
            android:summary="@string/preferences_use_home_tz_descrip" />
        <ListPreference
            android:key="preferences_home_tz"
            android:dependency="preferences_home_tz_enabled"
            android:defaultValue="@string/preferences_home_tz_default"
            android:title="@string/preferences_home_tz_title"
            android:entries="@array/timezone_labels"
            android:entryValues="@array/timezone_values"
            android:dialogTitle="@string/preferences_home_tz_title" />
        <PreferenceScreen
            android:key="preferences_clear_search_history"
            android:title="@string/preferences_clear_search_history_title"
            android:summary="@string/preferences_clear_search_history_summary" />
    </PreferenceCategory>
    <PreferenceCategory
        android:key="preferences_alerts_category"
        android:title="@string/preferences_reminder_title">
        <CheckBoxPreference
            android:key="preferences_alerts"
            android:defaultValue="true"
            android:title="@string/preferences_alerts_title" />

        <RingtonePreference
            android:layout="?android:attr/preferenceLayoutChild"
            android:key="preferences_alerts_ringtone"
            android:title="@string/preferences_alerts_ringtone_title"
            android:ringtoneType="notification"
            android:defaultValue="content://settings/system/notification_sound" />

        <ListPreference
            android:layout="?android:attr/preferenceLayoutChild"
            android:key="preferences_alerts_vibrateWhen"
            android:title="@string/preferences_alerts_vibrateWhen_title"
            android:entries="@array/prefEntries_alerts_vibrateWhen"
            android:entryValues="@array/prefValues_alerts_vibrateWhen"
            android:defaultValue="@string/prefDefault_alerts_vibrateWhen"
            android:dialogTitle="@string/prefDialogTitle_vibrateWhen" />

        <CheckBoxPreference
            android:layout="?android:attr/preferenceLayoutChild"
            android:key="preferences_alerts_popup"
            android:defaultValue="false"
            android:title="@string/preferences_alerts_popup_title" />

        <ListPreference
            android:key="preferences_default_reminder"
            android:defaultValue="@string/preferences_default_reminder_default"
            android:title="@string/preferences_default_reminder_title"
            android:entries="@array/preferences_default_reminder_labels"
            android:entryValues="@array/preferences_default_reminder_values"
            android:dialogTitle="@string/preferences_default_reminder_dialog" />

        <PreferenceScreen
            android:key="preferences_quick_responses"
            android:fragment="com.android.calendar.QuickResponseSettings"
            android:title="@string/quick_response_settings"
            android:summary="@string/quick_response_settings_summary" />
     </PreferenceCategory>

</PreferenceScreen>