setting.xml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" >
  3. <PreferenceCategory
  4. android:key="notification_setting"
  5. android:title="@string/pref_header_notifications" >
  6. <SwitchPreference
  7. android:defaultValue="true"
  8. android:key="notifications_new_message"
  9. android:summary="@string/pref_notifications_summary_on"
  10. android:summaryOff="@string/pref_notifications_summary_off"
  11. android:summaryOn="@string/pref_notifications_summary_on"
  12. android:title="@string/pref_title_new_message_notifications" />
  13. <!-- Allows the user to choose a ringtone in the 'notification' category. -->
  14. <!-- NOTE: This preference will be enabled only when the checkbox above is checked. -->
  15. <!-- NOTE: This preference will be enabled only when the checkbox above is checked. -->
  16. <SwitchPreference
  17. android:defaultValue="true"
  18. android:dependency="notifications_new_message"
  19. android:key="notifications_new_message_sound"
  20. android:summary="@string/pref_sound_on"
  21. android:summaryOff="@string/pref_sound_off"
  22. android:summaryOn="@string/pref_sound_on"
  23. android:title="@string/pref_title_sound" />
  24. <!-- NOTE: This preference will be enabled only when the checkbox above is checked. -->
  25. <SwitchPreference
  26. android:defaultValue="true"
  27. android:dependency="notifications_new_message"
  28. android:key="notifications_new_message_vibrate"
  29. android:summary="@string/pref_vibrate_on"
  30. android:summaryOff="@string/pref_vibrate_off"
  31. android:summaryOn="@string/pref_vibrate_on"
  32. android:title="@string/pref_title_vibrate" />
  33. </PreferenceCategory>
  34. </PreferenceScreen>