组件冲突的解决方式

a.setOnTouchListener(new View.OnTouchListener() {
    @Override
    public boolean onTouch(View v, MotionEvent event) {
        if (event.getAction() == MotionEvent.ACTION_UP) {
            b.requestDisallowInterceptTouchEvent(false);
        } else {
            b.requestDisallowInterceptTouchEvent(true);
        }
        return false;
    }
});

猜你喜欢

转载自blog.csdn.net/u013255337/article/details/79792896
今日推荐