Code example for ViewFlipper

Methods: setInAnimationsetOutAnimationsetFlipInterval

1
 
		//Build the view flipper 
		flipper = buildViewFlipper();
 
		//Set the default animations (timer controlled) 
		flipper.setInAnimation(inFromRightAnimation(false));
		flipper.setOutAnimation(outToLeftAnimation(false));
 
		//Set the default flip interval 
		this.flipInterval = 5000;
		flipper.setFlipInterval(flipInterval);
 
	} 
 
	/** 
	 * Instantiates a new basic user mode portrait. 
	 * 
	 * @param context the context 
	 * @param flipInterval the flip interval 
	 */ 
	public BasicUserModePortrait(Context context, int flipInterval) {