在进行rom产品定制化开发中,在针对systemui下拉状态栏和通知栏的定制UI的工作开发中,原生系统的下拉状态栏和通知栏的视图UI在产品开发中会不太满足功能,
所以根据产品需要来自定义SystemUI的下拉状态栏和通知栏功能,首选实现的就是下拉通知栏左滑删除通知的部分功能,接下来就来实现第四部分
部分效果图:
frameworks/base/packages/SystemUI/src/com/android/systemui/notification/SwipeMenuLayout.java
frameworks/base/packages/SystemUI/src/com/android/systemui/notification/SwipeMenuAdapter.java
frameworks/base/packages/SystemUI/src/com/android/systemui/notification/SwipeMenuListView.java
package com.android.systemui.notification;import android.annotation.SuppressLint;
import android.content.Context;
import android.util.Attribute