1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2014 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
18                  xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"
19        android:title="@string/notification_settings"
20        android:key="notification_settings"
21        settings:keywords="@string/keywords_sounds_and_notifications">
22
23    <PreferenceCategory
24        android:key="sound"
25        android:title="@string/sound_settings" >
26
27        <!-- Media volume -->
28        <com.android.settings.notification.VolumeSeekBarPreference
29                android:key="media_volume"
30                android:icon="@*android:drawable/ic_audio_vol"
31                android:title="@string/media_volume_option_title" />
32
33        <!-- Alarm volume -->
34        <com.android.settings.notification.VolumeSeekBarPreference
35                android:key="alarm_volume"
36                android:icon="@*android:drawable/ic_audio_alarm"
37                android:title="@string/alarm_volume_option_title" />
38
39        <!-- Ring volume -->
40        <com.android.settings.notification.VolumeSeekBarPreference
41                android:key="ring_volume"
42                android:icon="@*android:drawable/ic_audio_ring_notif"
43                android:title="@string/ring_volume_option_title" />
44
45        <!-- Notification volume -->
46        <com.android.settings.notification.VolumeSeekBarPreference
47                android:key="notification_volume"
48                android:icon="@*android:drawable/ic_audio_ring_notif"
49                android:title="@string/notification_volume_option_title" />
50
51        <!-- Also vibrate for calls -->
52        <SwitchPreference
53                android:key="vibrate_when_ringing"
54                android:title="@string/vibrate_when_ringing_title"
55                android:persistent="false" />
56
57        <!-- Interruptions -->
58        <PreferenceScreen
59                android:key="zen_mode"
60                android:title="@string/zen_mode_settings_title"
61                settings:keywords="@string/keywords_sounds_and_notifications_interruptions"
62                android:fragment="com.android.settings.notification.ZenModeSettings" />
63
64        <!-- Phone ringtone -->
65        <com.android.settings.DefaultRingtonePreference
66                android:key="ringtone"
67                android:title="@string/ringtone_title"
68                android:dialogTitle="@string/ringtone_title"
69                android:persistent="false"
70                android:ringtoneType="ringtone" />
71
72        <!-- Default notification ringtone -->
73        <com.android.settings.DefaultRingtonePreference
74                android:key="notification_ringtone"
75                android:title="@string/notification_ringtone_title"
76                android:dialogTitle="@string/notification_ringtone_title"
77                android:persistent="false"
78                android:ringtoneType="notification" />
79
80        <!-- Other sounds -->
81        <Preference
82                android:key="other_sounds"
83                android:title="@string/other_sound_settings"
84                android:persistent="false"
85                android:fragment="com.android.settings.notification.OtherSoundSettings" />
86
87    </PreferenceCategory>
88
89    <PreferenceCategory
90        android:key="notification"
91        android:title="@string/notification_section_header" >
92
93        <!-- Pulse notification light -->
94        <SwitchPreference
95                android:key="notification_pulse"
96                android:title="@string/notification_pulse_title"
97                android:switchTextOff=""
98                android:switchTextOn=""
99                android:persistent="false" />
100
101         <!-- When device is locked -->
102        <com.android.settings.notification.DropDownPreference
103                android:key="lock_screen_notifications"
104                android:title="@string/lock_screen_notifications_title"
105                android:persistent="false" />
106
107        <!-- App notifications -->
108        <PreferenceScreen
109                android:key="app_notifications"
110                android:title="@string/app_notifications_title"
111                android:fragment="com.android.settings.notification.NotificationAppList" />
112
113        <!-- Notification access -->
114        <Preference
115                android:key="manage_notification_access"
116                android:title="@string/manage_notification_access_title"
117                android:persistent="false"
118                android:fragment="com.android.settings.notification.NotificationAccessSettings" />
119
120    </PreferenceCategory>
121
122</PreferenceScreen>
123