1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright (C) 2018 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 android:key="zen_custom_rule_configuration_page" 21 xmlns:settings="http://schemas.android.com/apk/res-auto" 22 android:title="@string/zen_mode_settings_title"> 23 24 <PreferenceCategory 25 android:key="zen_custom_rule_configuration_category"> 26 <!-- Calls --> 27 <Preference 28 android:key="zen_rule_calls_settings" 29 android:title="@string/zen_mode_calls" /> 30 31 <!-- Messages --> 32 <Preference 33 android:key="zen_rule_messages_settings" 34 android:title="@string/zen_mode_messages" /> 35 36 <!-- Alarms --> 37 <SwitchPreference 38 android:key="zen_rule_alarms" 39 android:title="@string/zen_mode_alarms"/> 40 41 <!-- Media --> 42 <SwitchPreference 43 android:key="zen_rule_media" 44 android:title="@string/zen_mode_media"/> 45 46 <!-- System --> 47 <SwitchPreference 48 android:key="zen_rule_system" 49 android:title="@string/zen_mode_system"/> 50 51 <!-- Reminders --> 52 <SwitchPreference 53 android:key="zen_rule_reminders" 54 android:title="@string/zen_mode_reminders"/> 55 56 <!-- Events --> 57 <SwitchPreference 58 android:key="zen_rule_events" 59 android:title="@string/zen_mode_events"/> 60 </PreferenceCategory> 61 62 <Preference 63 android:key="zen_rule_notifications" 64 android:title="@string/zen_mode_restrict_notifications_title" 65 settings:allowDividerAbove="true"/> 66</PreferenceScreen> 67