目录
3.1分析NotificationPanelView.java的源码
3.2分析NotificationStackScrollLayout.java代码
1.概述
系统systemUI下拉状态栏UI定制 第九节 本篇主要讲解如何在下拉状态栏展开同时也要展开
通知栏,跟随上节的功能,继续实现功能,在系列七博客功能实现后 发现展开状态栏后没有展开通知栏,所以这就是本篇要解决 的问题
2.核心代码
主要是下列代码
frameworks\base\packages\SystemUI\src\com\android\systemui\statusbar\phone\NotificationPanelView.java
frameworks\base\packages\SystemUI\src\com\android\systemui\notification\stack\NotificationStackScrollLayout.java
3.分析核心代码
3.1分析NotificationPanelView.java的源码
public class NotificationPanelView extends PanelView implements
ExpandableView.OnHeightChangedListener,
View.OnClickListener, NotificationStackScrollLayout.OnOverscrollTopChangedListener,
KeyguardAffordanceHelper.Callback, Notification