]> git.ktnx.net Git - mobile-ledger.git/blob - app/src/main/res/xml/pref_notification.xml
e5a319e6ffea93f8f11b0995000406c2b7bc8eb8
[mobile-ledger.git] / app / src / main / res / xml / pref_notification.xml
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     <SwitchPreference
6         android:defaultValue="true"
7         android:key="notifications_new_message"
8         android:title="@string/pref_title_new_message_notifications" />
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: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" />
19
20     <!-- NOTE: This preference will be enabled only when the checkbox above is checked. -->
21     <SwitchPreference
22         android:defaultValue="true"
23         android:dependency="notifications_new_message"
24         android:key="notifications_new_message_vibrate"
25         android:title="@string/pref_title_vibrate" />
26
27 </PreferenceScreen>