Android13中,SystemUI中悬浮通知通过哪些方法最终显示在屏幕顶部;现在我自己在status_bar_expanded中加入了个布局,大致如下,现在问题是每次悬浮通知出现时,会将我的添加的背景布局一同展现,我需要在悬浮通知加载完成后,将自己的背景布局设为不可见。
<com.android.systemui.statusbar.phone.NotificationPanelView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res-auto"
android:id="@+id/notification_panel"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/transparent">
<ImageView
android:id="@+id/blur_view"
android:layout_width="match_parent"
android:scaleType="centerCrop"
android:foreground="#3d000000"
android:layout_height="match_parent"/>
<View
android:id="@+id/alpha_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:foreground="#50000000"/>
........
........
</com.android.systemui.statusbar.phone.NotificationPanelView>