1 <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
3 <!-- A 'parent' preference, which enables/disables child preferences (below)
4 when checked/unchecked. -->
6 android:defaultValue="true"
7 android:key="notifications_new_message"
8 android:title="@string/pref_title_new_message_notifications" />
10 <!-- Allows the user to choose a ringtone in the 'notification' category. -->
11 <!-- NOTE: This preference will be enabled only when the checkbox above is checked. -->
12 <!-- NOTE: RingtonePreference's summary should be set to its value by the activity code. -->
14 android:defaultValue="content://settings/system/notification_sound"
15 android:dependency="notifications_new_message"
16 android:key="notifications_new_message_ringtone"
17 android:ringtoneType="notification"
18 android:title="@string/pref_title_ringtone" />
20 <!-- NOTE: This preference will be enabled only when the checkbox above is checked. -->
22 android:defaultValue="true"
23 android:dependency="notifications_new_message"
24 android:key="notifications_new_message_vibrate"
25 android:title="@string/pref_title_vibrate" />