http://www.cnblogs.com/lqminn/archive/2013/03/02/2940194.html
要求: scrollview 或者其他可滑动 viewgroup 中包含子view 要求子view 监听到ontouch 事件时候 父View 不滑动
实现:(page 或 scrollview )
public boolean onTouch(View v, MotionEvent event) {
switch (event.getAction()) {
case MotionEvent.ACTION_MOVE:
pager.requestDisallowInterceptTouchEvent(true);
break;
case MotionEvent.ACTION_UP:
case MotionEvent.ACTION_CANCEL:
pager.requestDisallowInterceptTouchEvent(false);
break;
}
}