Code example for ViewGroup

Methods: getChildAt, setPersistentDrawingCache

0
	private ViewSwitcherListener listener;
 
	public ViewSwitcher3D(ViewGroup container) {
 
		mContainer = container;
		mFrondside = container.getChildAt(0);
		mBackside = container.getChildAt(1);
 
		// Since we are caching large views, we want to keep their cache 
		// between each animation 
		mContainer.setPersistentDrawingCache(ViewGroup.PERSISTENT_ANIMATION_CACHE);
 
	} 
 
	public void setDuration(long duration) {
		mDuration = duration;
	} 
 
	public void swap() { 
		float start, end;