findViewById(R.id.list_view).setOnTouchListener(new View.OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
if(event.getAction() == MotionEvent.ACTION_UP){
((ScrollView)findViewById(R.id.edit_scroview)).requestDisallowInterceptTouchEvent(false);
}else{
((ScrollView)findViewById(R.id.edit_scroview)).requestDisallowInterceptTouchEvent(true);
}
return false;
}
});
scrollview嵌套listliview滑动冲突
最新推荐文章于 2020-12-06 11:29:31 发布