解决办法:在Activity类中 添加方法
public boolean dispatchTouchEvent(MotionEvent ev) { if(ev.getAction() == MotionEvent.ACTION_MOVE){ return true;//forbid its child(gridview) to scroll } return super.dispatchTouchEvent(ev); }
解决办法:在Activity类中 添加方法
public boolean dispatchTouchEvent(MotionEvent ev) { if(ev.getAction() == MotionEvent.ACTION_MOVE){ return true;//forbid its child(gridview) to scroll } return super.dispatchTouchEvent(ev); }
转载于:https://www.cnblogs.com/jeesezhang/p/4421702.html