Code example for ViewFlipper

Methods: setInAnimation, setOutAnimation, showNext

0
			page.setOutAnimation(animDownRight);
			page.showPrevious();
  } 
  
		private void SwipeLeft(){ 
			page.setInAnimation(animUpLeft);
			page.setOutAnimation(animDownLeft);
			page.showNext();
  } 
  
		@Override 
		public boolean onTouchEvent(MotionEvent event) {
			return gestureDetector.onTouchEvent(event);
} 
 
		SimpleOnGestureListener simpleOnGestureListener
		= new SimpleOnGestureListener(){ 
 
			@Override 
			public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, 
					float velocityY) {