Files
app_Settings/res/xml/lock_screen_notifications_settings.xml
Yining Liu 466e16bfc9 Add minimalism illustrations to the lock screen notifications
settings page

Add static version minimalism illustrations to the lock screen
notifications settings page. We still need to replace the icons.

In the final version, illustrations will combine the light and dark
versions into a single file. The current status is a middle stage
stands for team fooding. The final version illustrations will also be
animations instead of static.

Bug: 367455695
Bug: 383778222
Flag: com.android.server.notification.notification_lock_screen_settings
Test: manual
Change-Id: I63c0452de60ce1aa94c7b414cb6e81dd98c5f361
2025-02-04 15:11:54 -08:00

77 lines
3.7 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2024 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
android:title="@string/lock_screen_notifs_title"
xmlns:settings="http://schemas.android.com/apk/res-auto"
xmlns:app="http://schemas.android.com/apk/res-auto">
<com.android.settingslib.widget.MainSwitchPreference
android:key="lock_screen_notification_global_pref"
android:title="@string/switch_on_text"
settings:controller="com.android.settings.notification.LockScreenNotificationsGlobalPreferenceController"/>
<!-- TODO: replace res with actual illustrations when we have -->
<com.android.settingslib.widget.IllustrationPreference
android:key="compact_illustration"
settings:searchable="false"
android:selectable="false"
settings:lottie_rawRes="@raw/lottie_lock_screen_notification_minimalism_compact_view"
settings:dynamicColor="true"/>
<com.android.settingslib.widget.IllustrationPreference
android:key="full_list_illustration"
settings:searchable="false"
android:selectable="false"
settings:lottie_rawRes="@raw/lottie_lock_screen_notification_minimalism_full_list"
settings:dynamicColor="true"/>
<com.android.settingslib.widget.LayoutPreference
android:key="ls_minimalism"
android:selectable="false"
android:layout="@layout/notification_ls_minimalism_selector"
settings:controller="com.android.settings.notification.lockscreen.MinimalismPreferenceController" />
<PreferenceCategory
android:key="lockscreen_notification_what_to_show"
android:title="@string/lockscreen_notification_what_to_show_title"
settings:controller="com.android.settings.notification.LockScreenWhatToShowController">
<SwitchPreferenceCompat
android:key="lock_screen_notification_show_seen_toggle"
android:title="@string/lock_screen_notification_show_seen_title"
settings:controller="com.android.settings.notification.LockScreenNotificationShowSeenController" />
<SwitchPreferenceCompat
android:key="lock_screen_notification_show_silent_toggle"
android:title="@string/lock_screen_notification_show_silent_title"
settings:controller="com.android.settings.notification.LockScreenNotificationShowSilentController" />
<com.android.settingslib.RestrictedSwitchPreference
android:key="lock_screen_notification_show_sensitive_toggle"
android:title="@string/lock_screen_notification_show_sensitive_content_title"
settings:controller="com.android.settings.notification.LockScreenNotificationShowSensitiveController" />
<com.android.settingslib.RestrictedSwitchPreference
android:key="work_profile_show_sensitive_notif_toggle"
android:title="@string/lock_screen_notification_show_sensitive_work_content_title"
settings:controller="com.android.settings.notification.LockScreenNotificationShowSensitiveController" />
</PreferenceCategory>
</PreferenceScreen>