Code example for ViewPager

Methods: addView

	public void addView(View child, int width, int height) {
		super.addView(wrapChild(child), width, height);
	public void addView(View child, int index, LayoutParams params) {
		super.addView(wrapChild(child), index, params);
	public boolean onInterceptTouchEvent(MotionEvent arg0) {
		return mEnabled ? super.onInterceptTouchEvent(arg0) : false;
	private State mState;
	private int oldPage;
	private View mLeft;
	private View mRight;
	private float mRot;
	private float mTrans;
Connect your IDE to all the code out there  Get Codota for Java