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 <PreferenceCategory 56 android:title="@string/zen_settings_general" 57 android:key="zen_mode_settings_advanced"> 58 59 <!-- Automatic rules --> 60 <Preference 61 android:key="zen_mode_automation_settings" 62 android:title="@string/zen_category_schedule" 63 android:fragment="com.android.settings.notification.zen.ZenModeAutomationSettings"/> 64 65 <!-- DND duration settings --> 66 <com.android.settings.notification.zen.ZenDurationDialogPreference 67 android:key="zen_mode_duration_settings" 68 android:title="@string/zen_category_duration" 69 android:widgetLayout="@null"/> 70 71 <!-- What to block (effects) --> 72 <Preference 73 android:key="zen_mode_block_effects_settings" 74 android:title="@string/zen_mode_restrict_notifications_title" 75 android:fragment="com.android.settings.notification.zen.ZenModeRestrictNotificationsSettings" /> 76 </PreferenceCategory> 77 78 <!-- Footer that shows if user is put into alarms only or total silence mode by an app --> 79 <com.android.settingslib.widget.FooterPreference/> 80 81</PreferenceScreen> 82