1.概述
在11.0进行定制化开发中,对SystemUI的相关问题解决也是相当多的 ,最近在测试中发现app弹出的通知
在状态栏显示为白色,从而看不清通知的原来图标,而显示不了正常的背景色,这就跟状态栏通知的背景颜色有关,看下哪里修改了通知背景颜色修改过来就可以了
2.状态栏通知栏的图标为白色解决方案的核心类
framework/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarNotificationPresenter.java
framework/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
framework/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationIconAreaController.java
framework/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java
3.状态栏通知栏的图标为白色解决方案的核心功能分析和实现
3.1StatusBarNotificationPresenter.java的关于状态栏通知的显示
接下来首选看下通知显示的流程
framework