Code example for ViewGroup

Methods: getChildAt, setPersistentDrawingCache

	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 
	public void setDuration(long duration) {
		mDuration = duration;
	public void swap() { 
		float start, end;
Connect your IDE to all the code out there  Get Codota for Java