Code example for ScaleAnimation

Methods: setAnimationListener

0
	} 
	 
	private void animateLeft(long duration) {
		// Utils.logFrame("left", mLetterboxLeft); 
		float leftScale = (float) mLetterboxWidth / (float) mLetterboxLeft.getWidth();
		ScaleAnimation leftAnimation = new ScaleAnimation(1, leftScale, 1, 1, 0, 0);
		leftAnimation.setAnimationListener(new AnimationListener() {
 
			public void onAnimationEnd(Animation animation) {
				mLetterboxLeft.clearAnimation();
				layoutLeft(); 
			} 
 
			public void onAnimationRepeat(Animation animation) {}
			public void onAnimationStart(Animation animation) {}}
		); 
		configureAndStart(mLetterboxLeft, leftAnimation, duration);
	} 
	 
	private void animateRight(long duration) {
		// Utils.logFrame("right", mLetterboxRight);