Home | History | Annotate | Download | only in 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
     19     xmlns:android="http://schemas.android.com/apk/res/android"
     20     xmlns:settings="http://schemas.android.com/apk/res-auto"
     21     android:key="zen_mode_settings"
     22     android:title="@string/zen_mode_settings_title"
     23     settings:keywords="@string/keywords_zen_mode_settings">
     24 
     25     <PreferenceCategory
     26         android:title="@string/zen_category_behavior">
     27         <!-- sound vibration -->
     28         <Preference
     29             android:key="zen_sound_vibration_settings"
     30             android:title="@string/zen_sound_title"
     31             android:fragment="com.android.settings.notification.ZenModeSoundVibrationSettings"/>
     32 
     33         <!-- What to block (effects) -->
     34         <Preference
     35             android:key="zen_mode_block_effects_settings"
     36             android:title="@string/zen_mode_restrict_notifications_title"
     37             android:fragment="com.android.settings.notification.ZenModeRestrictNotificationsSettings" />
     38     </PreferenceCategory>
     39 
     40     <PreferenceCategory
     41         android:title="@string/zen_category_exceptions">
     42         <Preference
     43             android:key="zen_mode_calls_settings"
     44             android:title="@string/zen_mode_calls"
     45             android:fragment="com.android.settings.notification.ZenModeCallsSettings" />
     46         <Preference
     47             android:key="zen_mode_msg_event_reminder_settings"
     48             android:title="@string/zen_msg_event_reminder_title"
     49             android:fragment="com.android.settings.notification.ZenModeMsgEventReminderSettings" />
     50 
     51     </PreferenceCategory>
     52 
     53     <PreferenceCategory
     54         android:title="@string/zen_category_schedule">
     55         <!-- DND duration settings -->
     56         <Preference
     57             android:key="zen_mode_duration_settings"
     58             android:title="@string/zen_mode_duration_settings_title" />
     59 
     60         <!-- Automatic rules -->
     61         <Preference
     62             android:key="zen_mode_automation_settings"
     63             android:title="@string/zen_mode_automation_settings_title"
     64             android:fragment="com.android.settings.notification.ZenModeAutomationSettings" />
     65     </PreferenceCategory>
     66 
     67     <!-- Turn on DND button -->
     68     <!-- Layout preference doesn't obey allowDividerAbove, so put it in a PreferenceCategory -->
     69     <PreferenceCategory
     70         android:key="zen_mode_settings_button_category">
     71         <com.android.settings.applications.LayoutPreference
     72             android:key="zen_mode_settings_button_container"
     73             android:selectable="false"
     74             android:layout="@layout/zen_mode_settings_button" />
     75     </PreferenceCategory>
     76 
     77     <PreferenceCategory
     78         android:key="zen_mode_footer_container">
     79         <com.android.settingslib.widget.FooterPreference />
     80     </PreferenceCategory>
     81 
     82 </PreferenceScreen>
     83