1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright (C) 2024 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:title="@string/lock_screen_notifs_title" 20 xmlns:settings="http://schemas.android.com/apk/res-auto" 21 xmlns:app="http://schemas.android.com/apk/res-auto"> 22 23 <com.android.settingslib.widget.MainSwitchPreference 24 android:key="lock_screen_notification_global_pref" 25 android:title="@string/switch_on_text" 26 settings:controller="com.android.settings.notification.LockScreenNotificationsGlobalPreferenceController"/> 27 28<!-- TODO: replace res with actual illustrations when we have --> 29 <com.android.settingslib.widget.IllustrationPreference 30 android:key="compact_illustration" 31 settings:searchable="false" 32 android:selectable="false" 33 settings:dynamicColor="true"/> 34 35 <com.android.settingslib.widget.IllustrationPreference 36 android:key="full_list_illustration" 37 settings:searchable="false" 38 android:selectable="false" 39 settings:dynamicColor="true"/> 40 41 <com.android.settingslib.widget.LayoutPreference 42 android:key="ls_minimalism" 43 android:selectable="false" 44 android:layout="@layout/notification_ls_minimalism_selector" 45 settings:controller="com.android.settings.notification.lockscreen.MinimalismPreferenceController" /> 46 47 <com.android.settingslib.RestrictedSwitchPreference 48 android:key="lock_screen_notification_show_sensitive_toggle" 49 android:title="@string/lock_screen_notifications_summary_hide" 50 settings:controller="com.android.settings.notification.LockScreenNotificationShowSensitiveToggleController" /> 51 52 <com.android.settingslib.RestrictedSwitchPreference 53 android:key="work_profile_show_sensitive_notif_toggle" 54 android:title="@string/lock_screen_notifications_summary_hide_profile" 55 settings:controller="com.android.settings.notification.LockScreenNotificationShowSensitiveToggleController" /> 56 57 <SwitchPreferenceCompat 58 android:key="lock_screen_notification_hide_seen_toggle" 59 android:title="@string/lock_screen_notification_hide_seen_title" 60 android:summary="@string/lock_screen_notification_hide_seen_summary" 61 settings:controller="com.android.settings.notification.LockScreenNotificationHideSeenToggleController" /> 62 63 <SwitchPreferenceCompat 64 android:key="lock_screen_notification_hide_silent_toggle" 65 android:title="@string/lock_screen_notification_hide_silent_title" 66 android:summary="@string/lock_screen_notification_hide_silent_summary" 67 settings:controller="com.android.settings.notification.LockScreenNotificationHideSilentToggleController" /> 68 69</PreferenceScreen> 70