1.概述
在12.0的產(chǎn)品定制化中,對于SystemUI的定制也是常用的功能,而在下拉狀態(tài)欄中的通知欄部分也是極其重要的部分,每條通知實時更新在通知欄部分,由于通知欄高度的限制,每條通知是默認(rèn)收縮的,功能開發(fā)需要要求通知默認(rèn)展開,所以就要從通知的加載流程分析
如圖:
?文章來源地址http://www.zghlxwxcb.cn/news/detail-465728.html文章來源:http://www.zghlxwxcb.cn/news/detail-465728.html
?
?2.通知欄通知設(shè)置默認(rèn)展開的相關(guān)代碼
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationViewHierarchyManager.java
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarNotificationPresenter.java
frameworks\base\packages\SystemUI\res\values\config.xml
3.通知欄通知設(shè)置默認(rèn)展開的相關(guān)代碼以及功能分析 ?3.1 StatusBarNotificationPresenter.java關(guān)于通知欄通知的相關(guān)管理
public class StatusBarNotificationPresenter implements NotificationPresenter,
ConfigurationController.ConfigurationListener,
NotificationRowBinderImpl.BindRowCallback,
CommandQueue.C
到了這里,關(guān)于Android 12.0下拉狀態(tài)欄通知欄的通知設(shè)置默認(rèn)展開的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!