Code example for ViewFlipper

Methods: setInAnimationsetOutAnimationshowPreviousstopFlipping

0
	 * Fling left. 
	 */ 
	public void flingLeft() { 
 
		//Stop timed flipping 
		flipper.stopFlipping();
 
		//Set the fling animation based on the direction of the fling 
		flipper.setInAnimation(inFromLeftAnimation(true));
		flipper.setOutAnimation(outToRightAnimation(true));
 
		//Show the new view 
		flipper.showPrevious();
 
	} 
 
	/** 
	 * Fling right. 
	 */ 
	public void flingRight() { 
Experience pair programming with AI  Get Codota for Java