1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 /* 4 * Copyright (C) 2007-2008 Esmertec AG. 5 * Copyright (C) 2007-2008 The Android Open Source Project 6 * 7 * Licensed under the Apache License, Version 2.0 (the "License"); 8 * you may not use this file except in compliance with the License. 9 * You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, software 14 * distributed under the License is distributed on an "AS IS" BASIS, 15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 * See the License for the specific language governing permissions and 17 * limitations under the License. 18 */ 19 --> 20 <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> 21 <PreferenceCategory android:title="@string/pref_sms_storage_title" 22 android:key="pref_key_storage_settings"> 23 <!-- 24 <Preference android:key="pref_key_mms_clear_history" 25 android:title="@string/pref_mms_clear_search_history_title" 26 android:summary="@string/pref_mms_clear_search_history_summary" /> 27 --> 28 <CheckBoxPreference android:defaultValue="false" 29 android:key="pref_key_auto_delete" 30 android:summary="@string/pref_summary_auto_delete" 31 android:title="@string/pref_title_auto_delete" /> 32 <Preference android:key="pref_key_sms_delete_limit" 33 android:dependency="pref_key_auto_delete" 34 android:persistent="false" 35 android:summary="@string/pref_summary_delete_limit" 36 android:title="@string/pref_title_sms_delete" /> 37 <Preference android:key="pref_key_mms_delete_limit" 38 android:dependency="pref_key_auto_delete" 39 android:persistent="false" 40 android:summary="@string/pref_summary_delete_limit" 41 android:title="@string/pref_title_mms_delete" /> 42 </PreferenceCategory> 43 <PreferenceCategory android:title="@string/pref_sms_settings_title" 44 android:key="pref_key_sms_settings" > 45 <CheckBoxPreference android:defaultValue="false" 46 android:key="pref_key_sms_delivery_reports" 47 android:summary="@string/pref_summary_sms_delivery_reports" 48 android:title="@string/pref_title_sms_delivery_reports" /> 49 <Preference android:key="pref_key_manage_sim_messages" 50 android:summary="@string/pref_summary_manage_sim_messages" 51 android:title="@string/pref_title_manage_sim_messages" /> 52 </PreferenceCategory> 53 <PreferenceCategory android:title="@string/pref_mms_settings_title" 54 android:key="pref_key_mms_settings"> 55 <CheckBoxPreference android:defaultValue="false" 56 android:key="pref_key_mms_delivery_reports" 57 android:summary="@string/pref_summary_mms_delivery_reports" 58 android:title="@string/pref_title_mms_delivery_reports" /> 59 <CheckBoxPreference android:defaultValue="false" 60 android:key="pref_key_mms_read_reports" 61 android:summary="@string/pref_summary_mms_read_reports" 62 android:title="@string/pref_title_mms_read_reports" /> 63 <CheckBoxPreference android:defaultValue="true" 64 android:key="pref_key_mms_auto_retrieval" 65 android:title="@string/pref_title_mms_auto_retrieval" 66 android:summary="@string/pref_summary_mms_auto_retrieval" /> 67 <CheckBoxPreference android:layout="?android:attr/preferenceLayoutChild" 68 android:dependency="pref_key_mms_auto_retrieval" 69 android:defaultValue="false" 70 android:key="pref_key_mms_retrieval_during_roaming" 71 android:title="@string/pref_title_mms_retrieval_during_roaming" 72 android:summary="@string/pref_summary_mms_retrieval_during_roaming" /> 73 </PreferenceCategory> 74 <PreferenceCategory android:title="@string/pref_notification_settings_title"> 75 <CheckBoxPreference android:key="pref_key_enable_notifications" 76 android:title="@string/pref_title_notification_enabled" 77 android:summary="@string/pref_summary_notification_enabled" 78 android:defaultValue="true" /> 79 <RingtonePreference android:layout="?android:attr/preferenceLayoutChild" 80 android:dependency="pref_key_enable_notifications" 81 android:key="pref_key_ringtone" 82 android:title="@string/pref_title_notification_ringtone" 83 android:ringtoneType="notification" 84 android:defaultValue="content://settings/system/notification_sound" /> 85 <ListPreference android:layout="?android:attr/preferenceLayoutChild" 86 android:dependency="pref_key_enable_notifications" 87 android:key="pref_key_vibrateWhen" 88 android:defaultValue="@string/prefDefault_vibrateWhen" 89 android:title="@string/pref_title_notification_vibrateWhen" 90 android:summary="@string/pref_summary_notification_vibrateWhen" 91 android:entries="@array/prefEntries_vibrateWhen" 92 android:entryValues="@array/prefValues_vibrateWhen" 93 android:dialogTitle="@string/prefDialogTitle_vibrateWhen" /> 94 </PreferenceCategory> 95 </PreferenceScreen> 96