OSDN Git Service

1f863c20b137744b96e4c992df51797e8089eaec
[android-x86/packages-apps-Settings.git] / res / xml / zen_mode_settings.xml
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 xmlns:android="http://schemas.android.com/apk/res/android"
19     android:key="zen_mode_settings"
20     android:title="@string/zen_mode_settings_title">
21
22     <!-- What to block (effects) -->
23     <Preference
24         android:key="zen_mode_block_effects_settings"
25         android:title="@string/zen_mode_what_to_block_title"
26         android:fragment="com.android.settings.notification.ZenModeBlockedEffectsSettings" />
27
28     <!-- Behavior settings (exceptions) -->
29     <Preference
30             android:key="zen_mode_behavior_settings"
31             android:title="@string/zen_mode_behavior_settings_title"
32             android:fragment="com.android.settings.notification.ZenModeBehaviorSettings" />
33
34     <!-- Automatic rules -->
35     <Preference
36         android:key="zen_mode_automation_settings"
37         android:title="@string/zen_mode_automation_settings_title"
38         android:fragment="com.android.settings.notification.ZenModeAutomationSettings" />
39
40     <!-- Turn on DND button -->
41     <!-- Layout preference doesn't obey allowDividerAbove, so put it in a PreferenceCategory -->
42     <PreferenceCategory
43         android:key="zen_mode_settings_button_category">
44         <com.android.settings.applications.LayoutPreference
45             android:key="zen_mode_settings_button_container"
46             android:selectable="false"
47             android:layout="@layout/zen_mode_settings_button" />
48     </PreferenceCategory>
49
50     <PreferenceCategory
51         android:key="zen_mode_footer_container">
52         <com.android.settingslib.widget.FooterPreference />
53     </PreferenceCategory>
54
55 </PreferenceScreen>