listview和scrollview滑动冲突

listview.setOnTouchListener(new View.OnTouchListener() {

@Override

public boolean onTouch(View v, MotionEvent event) {

if (event.getAction() == MotionEvent.ACTION_UP) {

scrollview.requestDisallowInterceptTouchEvent(false);

}else {

scrollview.requestDisallowInterceptTouchEvent(true);

}

return false;

}

});

你可能感兴趣的:(listview和scrollview滑动冲突)