Java tutorial
//package com.java2s; import android.animation.Animator; import android.view.View; import android.view.animation.DecelerateInterpolator; public class Main { public static void alpha(View view, float alpha, int duration, int startDelay) { view.animate().alpha(alpha).setInterpolator(new DecelerateInterpolator()).setDuration(duration) .setStartDelay(startDelay); } public static void alpha(View view, float alpha, int duration, int startDelay, Animator.AnimatorListener listener) { view.animate().alpha(alpha).setDuration(duration).setStartDelay(startDelay) .setInterpolator(new DecelerateInterpolator()).setListener(listener); } }