Home | History | Annotate | Download | only in xml
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2016 The Android Open Source Project
      3 
      4      Licensed under the Apache License, Version 2.0 (the "License");
      5      you may not use this file except in compliance with the License.
      6      You may obtain a copy of the License at
      7 
      8           http://www.apache.org/licenses/LICENSE-2.0
      9 
     10      Unless required by applicable law or agreed to in writing, software
     11      distributed under the License is distributed on an "AS IS" BASIS,
     12      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13      See the License for the specific language governing permissions and
     14      limitations under the License.
     15 -->
     16 
     17 <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
     18         xmlns:settings="http://schemas.android.com/apk/res/com.android.settings" >
     19 
     20     <!-- Importance -->
     21     <Preference
     22         android:key="importance"
     23         android:title="@string/notification_importance_title" />
     24 
     25     <!-- Default ringtone -->
     26     <com.android.settings.notification.NotificationSoundPreference
     27         android:key="ringtone"
     28         android:title="@string/notification_channel_sound_title"
     29         android:dialogTitle="@string/notification_channel_sound_title"
     30         android:showSilent="true"
     31         android:showDefault="true"
     32         android:ringtoneType="notification" />
     33 
     34     <!-- Vibration -->
     35     <com.android.settingslib.RestrictedSwitchPreference
     36         android:key="vibrate"
     37         android:title="@string/notification_vibrate_title"
     38         settings:useAdditionalSummary="true" />
     39 
     40     <PreferenceCategory
     41         android:title="@string/advanced_apps">
     42 
     43         <!-- Show badge -->
     44         <com.android.settingslib.RestrictedSwitchPreference
     45             android:key="badge"
     46             android:title="@string/notification_channel_badge_title"
     47             settings:useAdditionalSummary="true"
     48             settings:restrictedSwitchSummary="@string/enabled_by_admin" />
     49 
     50         <!-- Lights -->
     51         <com.android.settingslib.RestrictedSwitchPreference
     52             android:key="lights"
     53             android:title="@string/notification_show_lights_title"
     54             settings:useAdditionalSummary="true" />
     55 
     56         <!-- Visibility Override -->
     57         <com.android.settings.notification.RestrictedDropDownPreference
     58             android:key="visibility_override"
     59             android:title="@string/app_notification_visibility_override_title" />
     60 
     61         <!-- Bypass DND -->
     62         <com.android.settingslib.RestrictedSwitchPreference
     63             android:key="bypass_dnd"
     64             android:title="@string/app_notification_override_dnd_title"
     65             android:summary="@string/app_notification_override_dnd_summary"
     66             settings:useAdditionalSummary="true" />
     67 
     68     </PreferenceCategory>
     69 
     70 </PreferenceScreen>
     71