Code example for ScaleAnimation

Methods: setAnimationListener

0
	} 
	 
	private void animateRight(long duration) {
		// Utils.logFrame("right", mLetterboxRight); 
		float leftScale = (float) mLetterboxWidth / (float) mLetterboxLeft.getWidth();
		ScaleAnimation rightAnimation = new ScaleAnimation(1, leftScale, 1, 1, mLetterboxRight.getWidth(), 0);
		rightAnimation.setAnimationListener(new AnimationListener() {
 
			public void onAnimationEnd(Animation animation) {
				mLetterboxRight.clearAnimation();
				layoutRight(); 
			} 
 
			public void onAnimationRepeat(Animation animation) {}
			public void onAnimationStart(Animation animation) {}}
		); 
		configureAndStart(mLetterboxRight, rightAnimation, duration);
	} 
	/** 
	 * Hides the letterbox. 
	 * @param animated Not implemented yet.