pref_notification.xml 1.3 KB

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