| 1 |
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> |
| 2 |
|
| 3 |
<!-- A 'parent' preference, which enables/disables child preferences (below) |
| 4 |
when checked/unchecked. --> |
| 5 |
<CheckBoxPreference |
| 6 |
android:key="notifications_new_message" |
| 7 |
android:title="@string/pref_title_new_message_notifications" |
| 8 |
android:defaultValue="true" /> |
| 9 |
|
| 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. --> |
| 13 |
<RingtonePreference |
| 14 |
android:dependency="notifications_new_message" |
| 15 |
android:key="notifications_new_message_ringtone" |
| 16 |
android:title="@string/pref_title_ringtone" |
| 17 |
android:ringtoneType="notification" |
| 18 |
android:defaultValue="content://settings/system/notification_sound" /> |
| 19 |
|
| 20 |
<!-- NOTE: This preference will be enabled only when the checkbox above is checked. --> |
| 21 |
<CheckBoxPreference |
| 22 |
android:dependency="notifications_new_message" |
| 23 |
android:key="notifications_new_message_vibrate" |
| 24 |
android:title="@string/pref_title_vibrate" |
| 25 |
android:defaultValue="true" /> |
| 26 |
|
| 27 |
</PreferenceScreen> |