Android 11.0 systemui drop-down notification bar notification layout related source code analysis

1 Introduction


 In the system rom development of android11.0, when customizing the layout of the drop-down notification bar in systemui, it is also
very important to understand the notification layout of the drop-down notification bar of the native systemui system, and then analyze it The relevant
source code process of the notification layout of the related drop-down notification bar, understanding these is convenient for modifying the layout of the notification bar

2. The core class of the system UI pull-down notification bar notification layout related source code analysis

frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/NotificationContentInflater.java
frameworks/base/core/java/android/app/Notification.java

3. The core function analysis and implementation of the system UI drop-down notification bar notification layout related source code analysis


In the notification layout of the relevant drop-down notification bar in the system UI of 11.0, in the layout of the notification of the drop-down notification bar, NotificationInflater.java is mainly responsible for constructing the layout of the notification, so it is necessary to analyze the notification from
NotificationInflater.java The layout build process for


3.1 Analysis of related layout source code of NotificationInflater.java

/**
       * Inflate views for set flags on a background thread. This is asynchronous and will
       * notify the callback once it's finished.
       */
      public void inflateNotificationViews() {
          inflateNotificationViews(mInflationFl

Guess you like

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