Android父view不拦截子view的点击事件

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u010838785/article/details/90070129
@Override
public boolean onInterceptTouchEvent(MotionEvent ev) {
    // 让父类不要拦截该view的事件
    getParent().requestDisallowInterceptTouchEvent(false);
    return super.onInterceptTouchEvent(ev);
}

猜你喜欢

转载自blog.csdn.net/u010838785/article/details/90070129