This repository has been archived on 2025-04-28. You can view files and clone it, but cannot push or open issues or pull requests.
SnipIt/res/xml/pref_notification.xml
djwesty b692a0d8c9 Snip It
Latest, and last version of Snip It, formerly SnipTease
2014-10-29 13:37:13 -07:00

30 lines
1.3 KiB
XML

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