Code example for ScaleAnimation

Methods: setAnimationListener

0
	} 
	 
	private void animateBottom(long duration) {
		// Utils.logFrame("bottom", mLetterboxBottom); 
		float topScale = (float) mLetterboxHeight / (float) mLetterboxTop.getHeight();
		ScaleAnimation bottomAnimation = new ScaleAnimation(1, 1, 1, topScale, 0, mLetterboxBottom.getHeight());
		bottomAnimation.setAnimationListener(new AnimationListener() {
 
			public void onAnimationEnd(Animation animation) {
				mLetterboxBottom.clearAnimation();
				layoutBottom(); 
			} 
 
			public void onAnimationRepeat(Animation animation) {}
			public void onAnimationStart(Animation animation) {}}
		); 
		configureAndStart(mLetterboxBottom, bottomAnimation, duration);
	} 
	 
	private void animateLeft(long duration) {
		// Utils.logFrame("left", mLetterboxLeft);