Code example for Animation

Methods: setAnimationListener, setDuration, setFillAfter

0
				TranslateAnimation.ABSOLUTE, 0,
				TranslateAnimation.ABSOLUTE, shift,
				TranslateAnimation.ABSOLUTE, 0,
				TranslateAnimation.ABSOLUTE, 0
				); 
		mStartAnimation.setDuration(DURATION_MS);
		mStartAnimation.setFillAfter(true);
		mStartAnimation.setAnimationListener(new AnimationListener() {
 
			@Override 
			public void onAnimationStart(Animation animation) {
			} 
 
			@Override 
			public void onAnimationRepeat(Animation animation) {
			} 
 
			@Override 
			public void onAnimationEnd(Animation animation) {
				mCover.setAnimation(null);
				@SuppressWarnings("deprecation")