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="calls"
     41             android:title="@string/zen_mode_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     <!-- Downtime -->
     69     <PreferenceCategory
     70         android:key="downtime"
     71         android:title="@string/zen_mode_downtime_category" >
     72 
     73         <!-- Days -->
     74         <Preference
     75             android:key="days"
     76             android:title="@string/zen_mode_downtime_days"
     77             android:persistent="false" />
     78 
     79         <!-- Start time/End time added and removed here! :-) -->
     80 
     81         <!-- Interruptions allowed -->
     82         <com.android.settings.notification.DropDownPreference
     83                 android:key="downtime_mode"
     84                 android:title="@string/zen_mode_downtime_mode_title"
     85                 android:order="100"
     86                 android:persistent="false" />
     87     </PreferenceCategory>
     88 
     89     <PreferenceCategory
     90         android:key="automation"
     91         android:title="@string/zen_mode_automation_category" >
     92 
     93         <Preference
     94             android:key="entry"
     95             android:title="@string/zen_mode_entry_conditions_title"
     96             android:persistent="false" />
     97 
     98         <Preference
     99                 android:key="manage_condition_providers"
    100                 android:title="@string/manage_condition_providers"
    101                 android:persistent="false"
    102                 android:fragment="com.android.settings.notification.ConditionProviderSettings" />
    103 
    104     </PreferenceCategory>
    105 
    106 </PreferenceScreen>