ScrollView嵌套Scrollview中滑动时间冲突的解决方案

里面的Scrollview实现一下操作即可

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

            }
        });

 

你可能感兴趣的:(android,嵌套,scrollview)