Code example for AlphaAnimation

Methods: setAnimationListener, setDuration, setInterpolator

0
import android.view.animation.DecelerateInterpolator; 
import android.view.animation.Animation.AnimationListener; 
 
public class Fade { 
	public static AlphaAnimation fadeOut(int duration, final View.OnClickListener next){
		AlphaAnimation fadeOut = new AlphaAnimation(1, 0);
        fadeOut.setInterpolator(new DecelerateInterpolator());
        fadeOut.setDuration(duration);
        fadeOut.setAnimationListener(new AnimationListener() {
			 
			public void onAnimationStart(Animation animation) {
				// TODO Auto-generated method stub 
				 
			} 
			 
			public void onAnimationRepeat(Animation animation) {
				// TODO Auto-generated method stub 
				 
			} 
			 
			public void onAnimationEnd(Animation animation) {