重写DanmakuView中的 dispatchTouchEvent
public class MyDanmakuView extends DanmakuView {
public MyDanmakuView(Context context) {
super(context);
}
public MyDanmakuView(Context context, AttributeSet attrs) {
super(context, attrs);
}
public MyDanmakuView(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
}
@Override
public boolean dispatchTouchEvent(MotionEvent ev) {
//返回false,不拦截
getParent().requestDisallowInterceptTouchEvent(false);
return false;
}
}