vp_home_bigpic.setOnTouchListener(new OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
sv_home.requestDisallowInterceptTouchEvent(true);//让该ScrollView不截获子view的事件
if (event.getAction() == MotionEvent.ACTION_UP) {
dragging = false;
} else if (event.getAction() == MotionEvent.ACTION_DOWN) {
dragging = true;
}
return false;
}
});
@Override
public boolean onTouch(View v, MotionEvent event) {
sv_home.requestDisallowInterceptTouchEvent(true);//让该ScrollView不截获子view的事件
if (event.getAction() == MotionEvent.ACTION_UP) {
dragging = false;
} else if (event.getAction() == MotionEvent.ACTION_DOWN) {
dragging = true;
}
return false;
}
});