1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2015 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-auto" 19 android:title="@string/configure_notification_settings" 20 android:key="configure_notification_settings"> 21 22 <!-- When device is locked --> 23 <com.android.settings.RestrictedListPreference 24 android:key="lock_screen_notifications" 25 android:title="@string/lock_screen_notifications_title" 26 android:summary="@string/summary_placeholder"/> 27 28 <!-- Notification badging --> 29 <SwitchPreference 30 android:key="notification_badging" 31 android:title="@string/notification_badging_title" 32 settings:controller="com.android.settings.notification.BadgingNotificationPreferenceController"/> 33 34 <!-- Pulse notification light --> 35 <SwitchPreference 36 android:key="notification_pulse" 37 android:title="@string/notification_pulse_title"/> 38 39 <!-- Default notification ringtone --> 40 <com.android.settings.DefaultRingtonePreference 41 android:key="notification_default_ringtone" 42 android:title="@string/notification_ringtone_title" 43 android:dialogTitle="@string/notification_ringtone_title" 44 android:summary="@string/summary_placeholder" 45 android:ringtoneType="notification" /> 46 47 <Preference 48 android:key="gesture_swipe_down_fingerprint_notifications" 49 android:title="@string/fingerprint_swipe_for_notifications_title" 50 android:fragment="com.android.settings.gestures.SwipeToNotificationSettings" 51 settings:controller="com.android.settings.gestures.SwipeToNotificationPreferenceController" /> 52 53 <com.android.settingslib.RestrictedPreference 54 android:key="zen_mode_notifications" 55 android:title="@string/zen_mode_settings_title" 56 settings:useAdminDisabledSummary="true" 57 android:fragment="com.android.settings.notification.ZenModeSettings" 58 settings:allowDividerAbove="false" /> 59 60 <!-- Empty category to draw divider --> 61 <PreferenceCategory 62 android:key="all_notifications_divider" 63 android:order="20"/> 64 65 <PreferenceCategory 66 android:key="recent_notifications_category" 67 android:title="@string/recent_notifications" 68 settings:allowDividerAbove="false" 69 android:order="21"> 70 <!-- Placeholder for a list of recent apps --> 71 72 <!-- See all apps button --> 73 <Preference 74 android:key="all_notifications" 75 android:title="@string/notifications_title" 76 android:fragment="com.android.settings.applications.manageapplications.ManageApplications" 77 android:order="22"> 78 <extra 79 android:name="classname" 80 android:value="com.android.settings.Settings$NotificationAppListActivity" /> 81 </Preference> 82 </PreferenceCategory> 83 84 <!-- Place work profile section at the bottom to avoid users thinking that any of the 85 above settings are specific to the work profile --> 86 <PreferenceCategory 87 android:key="lock_screen_notifications_profile_header" 88 android:title="@string/profile_section_header" 89 android:order="23"> 90 91 <com.android.settings.RestrictedListPreference 92 android:key="lock_screen_notifications_profile" 93 android:title="@string/locked_work_profile_notification_title" 94 android:summary="@string/summary_placeholder" 95 android:order="24"/> 96 </PreferenceCategory> 97 98</PreferenceScreen> 99