Android 10.0 SystemUI下拉状态栏UI定制化开发系列(十二)

1.概述

SystemUI下拉状态栏UI定制化第十二讲,本篇主要讲述去掉下拉通知栏通知设置圆角背景后的

灰色透明四角背景的消除,在设置圆角背景后会出现很明显的灰色透明背景,所以要想办法去掉这个背景,这样才能使圆角背景更完善

2.核心代码

核心代码为:
frameworks\base\packages\SystemUI\src\com\android\systemui\statusbar\notification\row\ActivatableNotificationView.java
frameworks\base\packages\SystemUI\src\com\android\systemui\statusbar\notification\row\ExpandableOutlineView.java
frameworks\base\packages\SystemUI\src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java

3.核心代码部分分析

 3.1 NotificationStackScrollLayout.java代码分析

    public void wakeUpFromPulse() {
        setPulseHeight(getPulseHeight());
        // Let's place the hidden views at the end of the pulsing notification to make sure we have
        // a smooth animation
        boolean firstVisibleView = true;
        float wakeUplocation = -1f;
        int childCount = getChildCount();

猜你喜欢

转载自blog.csdn.net/baidu_41666295/article/details/125373338