Code example for ViewAnimator

Methods: getDisplayedChild, setDisplayedChild

0
	} 
 
	@Override 
	public boolean onFling(MotionEvent arg0, MotionEvent arg1, float arg2,
			float arg3) {
		int child = va.getDisplayedChild();
		if (child == 1) {
			va.setDisplayedChild(0);
		} else 
			va.setDisplayedChild(1);
		return true; 
	} 
 
	@Override 
	public void onLongPress(MotionEvent arg0) {
		// TODO Auto-generated method stub 
 
	} 
 
	@Override 
	public boolean onScroll(MotionEvent arg0, MotionEvent arg1, float arg2,