1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2024 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 xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:settings="http://schemas.android.com/apk/res-auto" 20 android:title="@string/zen_modes_list_title" > 21 22 <com.android.settingslib.widget.LayoutPreference 23 android:key="header" 24 android:layout="@layout/settings_entity_header" /> 25 26 <com.android.settings.applications.SpacePreference 27 android:layout_height="16dp" /> 28 29 <com.android.settings.notification.modes.ZenModeBlurbPreference 30 android:key="mode_blurb" /> 31 32 <com.android.settings.applications.SpacePreference 33 android:layout_height="8dp" /> 34 35 <com.android.settingslib.widget.LayoutPreference 36 android:key="activate" 37 android:selectable="false" 38 android:layout="@layout/modes_activation_button"/> 39 40 <com.android.settings.applications.SpacePreference 41 android:layout_height="16dp" /> 42 43 <!-- automatic trigger section; preference changes programmatically depending on type --> 44 <PreferenceCategory 45 android:key="zen_automatic_trigger_category" 46 android:title="@string/zen_mode_automatic_trigger_title"> 47 <!-- For configuring the trigger on tap and enabling/disabling the mode with the switch. --> 48 <com.android.settingslib.PrimarySwitchPreference 49 android:key="zen_automatic_trigger_settings" /> 50 <!-- For adding a trigger for custom manual modes (no switch). --> 51 <Preference 52 android:key="zen_add_automatic_trigger" 53 android:title="@string/zen_mode_select_schedule" 54 android:icon="@drawable/ic_add_24dp" /> 55 </PreferenceCategory> 56 57 <PreferenceCategory 58 android:title="@string/mode_interruption_filter_title" 59 android:key="modes_filters"> 60 61 <SwitchPreferenceCompat 62 android:key="allow_all" 63 android:title="@string/zen_mode_allow_all_notifications"/> 64 65 <com.android.settings.notification.modes.CircularIconsPreference 66 android:key="zen_mode_people" 67 android:title="@string/zen_category_people" 68 android:icon="@drawable/ic_zen_mode_category_people" /> 69 70 <com.android.settings.notification.modes.CircularIconsPreference 71 android:key="zen_mode_apps" 72 android:title="@string/zen_category_apps" 73 android:icon="@drawable/ic_zen_mode_category_apps" /> 74 75 <com.android.settings.notification.modes.CircularIconsPreference 76 android:key="zen_other_settings" 77 android:title="@string/zen_category_exceptions" 78 android:icon="@drawable/ic_zen_mode_category_other" /> 79 </PreferenceCategory> 80 81 <PreferenceCategory 82 android:title="@string/mode_device_effects_title" 83 android:key="modes_additional_actions"> 84 <Preference 85 android:key="mode_display_settings" 86 android:title="@string/mode_display_settings_title" 87 android:icon="@drawable/ic_zen_mode_category_display" /> 88 89 <Preference 90 android:key="mode_manual_duration" 91 android:title="@string/zen_category_duration" 92 android:icon="@drawable/ic_zen_mode_category_duration" /> 93 </PreferenceCategory> 94</PreferenceScreen>