1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright (C) 2014 The Android Open Source Project 4 5 Licensed under the Apache License, Version 2.0 (the "License"); 6 you may not use this file except in compliance with the License. 7 You may obtain a copy of the License at 8 9 http://www.apache.org/licenses/LICENSE-2.0 10 11 Unless required by applicable law or agreed to in writing, software 12 distributed under the License is distributed on an "AS IS" BASIS, 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 See the License for the specific language governing permissions and 15 limitations under the License. 16--> 17 18<PreferenceScreen 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 xmlns:settings="http://schemas.android.com/apk/res-auto" 21 android:title="@string/zen_mode_settings_title"> 22 23 <!-- Turn on DND button --> 24 <com.android.settingslib.widget.LayoutPreference 25 android:key="zen_mode_toggle" 26 android:title="@string/zen_mode_settings_title" 27 android:selectable="false" 28 android:layout="@layout/zen_mode_settings_button" 29 settings:allowDividerBelow="true" 30 settings:keywords="@string/keywords_zen_mode_settings"/> 31 32 <PreferenceCategory 33 android:key="zen_mode_settings_category_behavior" 34 android:title="@string/zen_category_behavior"> 35 <!-- People --> 36 <Preference 37 android:key="zen_mode_behavior_people" 38 android:title="@string/zen_category_people" 39 android:fragment="com.android.settings.notification.zen.ZenModePeopleSettings" /> 40 41 <!-- Apps --> 42 <Preference 43 android:key="zen_mode_behavior_apps" 44 android:title="@string/zen_category_apps" 45 android:summary=" " 46 android:fragment="com.android.settings.notification.zen.ZenModeBypassingAppsSettings" /> 47 48 <!-- All sounds --> 49 <Preference 50 android:key="zen_sound_vibration_settings" 51 android:title="@string/zen_category_exceptions" 52 android:fragment="com.android.settings.notification.zen.ZenModeSoundVibrationSettings" /> 53 </PreferenceCategory> 54 55 <!-- Automatic rules --> 56 <PreferenceCategory 57 android:key="zen_mode_settings_schedule" 58 android:title="@string/zen_category_schedule"> 59 <Preference 60 android:key="zen_mode_automation_settings" 61 android:title="@string/zen_category_schedule" 62 android:fragment="com.android.settings.notification.zen.ZenModeAutomationSettings"/> 63 </PreferenceCategory> 64 65 <PreferenceCategory 66 android:title="@string/zen_settings_general" 67 android:key="zen_mode_settings_advanced"> 68 69 <!-- DND duration settings --> 70 <com.android.settings.notification.zen.ZenDurationDialogPreference 71 android:key="zen_mode_duration_settings" 72 android:title="@string/zen_category_duration" 73 android:widgetLayout="@null"/> 74 75 <!-- What to block (effects) --> 76 <Preference 77 android:key="zen_mode_block_effects_settings" 78 android:title="@string/zen_mode_restrict_notifications_title" 79 android:fragment="com.android.settings.notification.zen.ZenModeRestrictNotificationsSettings" /> 80 </PreferenceCategory> 81 82 <!-- Footer that shows if user is put into alarms only or total silence mode by an app --> 83 <com.android.settingslib.widget.FooterPreference/> 84 85</PreferenceScreen> 86