/**Custom your own viewpager to extends support Viewpager. Java Source:*//**Created by Azi on 2013-6-21. */ PackageCom.chaokuadi.android.support.view;ImportAndroid.content.Context;ImportAndroid.util.AttributeSet;Importandroid.view.MotionEvent; Public classViewpagerfixedextendsAndroid.support.v4.view.ViewPager { Publicviewpagerfixed (Context context) {Super(context); } Publicviewpagerfixed (Context context, AttributeSet attrs) {Super(context, attrs); } @Override Public Booleanontouchevent (motionevent ev) {Try { return Super. ontouchevent (EV); } Catch(IllegalArgumentException ex) {ex.printstacktrace (); } return false; } @Override Public Booleanonintercepttouchevent (motionevent ev) {Try { return Super. onintercepttouchevent (EV); } Catch(IllegalArgumentException ex) {ex.printstacktrace (); } return false; }}
IllegalArgumentException (Pointerindex out of range) while using many fingers to zoom in and out
Resolve multi-finger operation Zoom Out pointer error java.lang.IllegalArgumentException:pointerIndex out of range