Android 10.0 SystemUI customization controls the display and hiding functions of the lock screen page notification bar through system properties

1 Introduction

In the development of system products in 10.0 and in the customized development of some SystemUI systems, the notification bar on the lock screen page does not need to be displayed in some cases, so it is required< a i=1> In the notification bar layout page of systemui, use attributes to control whether to display notifications on the lock screen page. Specifically, we will analyze systemui and develop related functions

2.SystemUI customization: the core class that controls the display and hiding functions of the lock screen page notification bar through system properties

frameworks\base\packages\SystemUI\src\com\android\systemui\statusbar\notification\stack\NotificationStackScrollLayout.java
frameworks\base\packages\SystemUI\res\layout\status_bar_expanded.xml

3.SystemUI customization: core function analysis and implementation of controlling the display and hiding functions of the notification bar on the lock screen page through system properties

The most important modules in the systemui system are StatusBar, QuickSetting, and Keyguard modules. As for the lock screen module of SystemUI, it is divided into two categories, one is the sliding lock screen and the other is the safe lock screen.
Sliding lock screen refers to a lock screen that can be unlocked by sliding your finger. Security lock screen refers to password lock, pattern lock, PIN code lock, etc. Next, this article needs to analyze the display and hiding of the notification bar in the lock screen module.

According to the SystemUI's StatusBar creation layout, it can be seen that the entire SystemUI view is a layout created by super_status_bar.xml, and this layout
contains a status_bar_expanded.xml layout, which is the entire Pull-down notification layout, and the pull-down notification layout in status_bar_expanded.xml
includes various controls for sliding lock screen, QuickSetting quick settings

Guess you like

Origin blog.csdn.net/baidu_41666295/article/details/134793536