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 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     <!-- When calls and notifications arrive -->
     23     <com.android.settings.notification.DropDownPreference
     24             android:key="zen_mode"
     25             android:title="@string/zen_mode_option_title"
     26             android:persistent="false" />
     27 
     28     <PreferenceCategory
     29         android:key="important"
     30         android:title="@string/zen_mode_important_category" >
     31 
     32         <SwitchPreference
     33             android:key="events"
     34             android:title="@string/zen_mode_events"
     35             android:persistent="false"
     36             android:switchTextOff=""
     37             android:switchTextOn="" />
     38 
     39         <SwitchPreference
     40             android:key="phone_calls"
     41             android:title="@string/zen_mode_phone_calls"
     42             android:persistent="false"
     43             android:switchTextOff=""
     44             android:switchTextOn="" />
     45 
     46         <SwitchPreference
     47             android:key="messages"
     48             android:title="@string/zen_mode_messages"
     49             android:persistent="false"
     50             android:switchTextOff=""
     51             android:switchTextOn="" />
     52 
     53         <com.android.settings.notification.DropDownPreference
     54                 android:key="starred"
     55                 android:title="@string/zen_mode_from"
     56                 android:persistent="false" />
     57 
     58         <Preference
     59             android:key="alarm_info"
     60             android:title=""
     61             android:textAppearance="?android:attr/textAppearanceSmall"
     62             android:textColor="?android:attr/colorForegroundInverse"
     63             android:selectable="false"
     64             android:summary="@string/zen_mode_alarm_info" />
     65 
     66     </PreferenceCategory>
     67 
     68     <PreferenceCategory
     69         android:key="downtime"
     70         android:title="@string/zen_mode_downtime_category" >
     71 
     72         <Preference
     73             android:key="days"
     74             android:title="@string/zen_mode_downtime_days"
     75             android:persistent="false" />
     76 
     77     </PreferenceCategory>
     78 
     79     <PreferenceCategory
     80         android:key="automation"
     81         android:title="@string/zen_mode_automation_category" >
     82 
     83         <Preference
     84             android:key="entry"
     85             android:title="@string/zen_mode_entry_conditions_title"
     86             android:persistent="false" />
     87 
     88         <Preference
     89                 android:key="manage_condition_providers"
     90                 android:title="@string/manage_condition_providers"
     91                 android:persistent="false"
     92                 android:fragment="com.android.settings.notification.ConditionProviderSettings" />
     93 
     94     </PreferenceCategory>
     95 
     96 </PreferenceScreen>