Code example for ViewAnimator

Methods: getChildAtgetChildCount, getCurrentView, getDisplayedChild, setInAnimation, setOutAnimation, showNext

0
		viewAnimator.setInAnimation(animc[1]);
		 
		viewAnimator.setDisplayedChild(nextIndex); 
	} 
	 
	public static void flipTransition(final ViewAnimator viewAnimator, FlipDirection dir) {
		 
		flipTransition(viewAnimator, dir, 1000);
	} 
	 
	////////////// 
 
  
	/** 
	 * Slide animations to enter a view from left. 
	 *  
	 * @param duration the animation duration in milliseconds 
	 * @param interpolator the interpolator to use (pass {@code null} to use the {@link AccelerateInterpolator} interpolator) 	 
	 * @return a slide transition animation 
	 */ 
	public static Animation inFromLeftAnimation(long duration, Interpolator interpolator) {
		Animation inFromLeft = new TranslateAnimation(