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="true" 56 android:key="pref_key_mms_group_mms" 57 android:summary="@string/pref_summary_mms_group_mms" 58 android:title="@string/pref_title_mms_group_mms" /> 59 <CheckBoxPreference android:defaultValue="false" 60 android:key="pref_key_mms_delivery_reports" 61 android:summary="@string/pref_summary_mms_delivery_reports" 62 android:title="@string/pref_title_mms_delivery_reports" /> 63 <CheckBoxPreference android:defaultValue="false" 64 android:key="pref_key_mms_read_reports" 65 android:summary="@string/pref_summary_mms_read_reports" 66 android:title="@string/pref_title_mms_read_reports" /> 67 <CheckBoxPreference android:defaultValue="true" 68 android:key="pref_key_mms_auto_retrieval" 69 android:title="@string/pref_title_mms_auto_retrieval" 70 android:summary="@string/pref_summary_mms_auto_retrieval" /> 71 <CheckBoxPreference android:layout="?android:attr/preferenceLayoutChild" 72 android:dependency="pref_key_mms_auto_retrieval" 73 android:defaultValue="false" 74 android:key="pref_key_mms_retrieval_during_roaming" 75 android:title="@string/pref_title_mms_retrieval_during_roaming" 76 android:summary="@string/pref_summary_mms_retrieval_during_roaming" /> 77 </PreferenceCategory> 78 <PreferenceCategory android:title="@string/pref_notification_settings_title"> 79 <CheckBoxPreference android:key="pref_key_enable_notifications" 80 android:title="@string/pref_title_notification_enabled" 81 android:defaultValue="true" /> 82 <RingtonePreference android:key="pref_key_ringtone" 83 android:title="@string/pref_title_notification_ringtone" 84 android:ringtoneType="notification" 85 android:dependency="pref_key_enable_notifications" 86 android:defaultValue="content://settings/system/notification_sound" /> 87 <CheckBoxPreference android:key="pref_key_vibrate" 88 android:title="@string/pref_title_notification_vibrateWhen" 89 android:dependency="pref_key_enable_notifications" 90 android:defaultValue="false" /> 91 </PreferenceCategory> 92 </PreferenceScreen> 93