1.前言
在android11.0的系统rom开发中,在进行systemui中的下拉通知栏的布局自定义的时候,对于原生systemui的
系统的下拉通知栏的通知布局的了解也是非常重要的,接下来就来分析下相关的下拉通知栏的通知布局的相关
源码流程,了解这些才方便对通知栏的布局做修改
2.系统systemui下拉通知栏的通知布局相关源码分析的核心类
frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/NotificationContentInflater.java
frameworks/base/core/java/android/app/Notification.java
3.系统systemui下拉通知栏的通知布局相关源码分析的核心功能分析和实现
在11.0的系统systemui中的相关下拉通知栏的通知布局中,在下拉通知栏的通知的布局中,主要是由NotificationInflater.java来负责构建通知的布局,所以需要从NotificationInflater.java
中,来分析通知的布局构建流程
3.1 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