Code example for ViewAnimator

Methods: setInAnimation, setOutAnimation, showPrevious

0
			mViewAnimator.setOutAnimation(outToLeftAnimation());
			mViewAnimator.showNext();
			return true; 
		} else if (e2.getX() - e1.getX() > SWIPE_MIN_DISTANCE
				&& Math.abs(velocityX) > SWIPE_THRESHOLD_VELOCITY) {
			mViewAnimator.setInAnimation(inFromLeftAnimation());
			mViewAnimator.setOutAnimation(outToRightAnimation());
			mViewAnimator.showPrevious();
			return true; 
		} else { 
			Log.d("MyGestureDetector", "Motion not in my model, ignoring");
			return super.onFling(e1, e2, velocityX, velocityY);
		} 
	} 
 
	public Animation inFromRightAnimation() {
		return mInFromRight;
	} 
 
	public Animation outToLeftAnimation() {
		return mOuttoLeft;