Code example for ViewAnimator

Methods: getChildAtgetChildCountremoveViewAtsetDisplayedChildsetInAnimationsetOutAnimation

0
			// viewSwiter.setClickable(false); 
		} 
	} 
 
	public boolean back() { 
		LogInfo.LogOut("haitian", "viewSwiter.getChildCount() = " + viewSwiter.getChildCount());
		if (viewSwiter.getChildCount() > 1) {
			final BaseDC toShow = (BaseDC) viewSwiter.getChildAt(viewSwiter.getChildCount() - 2);
			viewSwiter.setInAnimation(animSlideInRight);
			viewSwiter.setOutAnimation(animSlideOutRight);
			viewSwiter.setDisplayedChild(viewSwiter.getChildCount() - 2);
			viewSwiter.removeViewAt(viewSwiter.getChildCount() - 1);
			toShow.onShow();
			return true; 
		} else { 
			return false; 
		} 
	} 
 
	public void showDC(BaseDC dc, int type, BaseManager from, BaseManager to) {
Stop searching for code, let great code find you!  Add Codota to your java IDE