Code example for AlphaAnimation

Methods: setAnimationListenersetDurationsetInterpolator

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.setAnimationListener(new AnimationListener() {
			public void onAnimationStart(Animation animation) {
				// TODO Auto-generated method stub 
			public void onAnimationRepeat(Animation animation) {
				// TODO Auto-generated method stub 
Connect your IDE to all the code out there  Get Codota for Java