Java tutorial
//package com.java2s; import android.view.animation.AlphaAnimation; public class Main { public static AlphaAnimation getAlphaAnimation(float fromAlpha, float toAlpha, int intDuration, boolean boolFillAfter) { AlphaAnimation mAnmation = new AlphaAnimation(fromAlpha, toAlpha); mAnmation.setDuration(intDuration); mAnmation.setFillAfter(boolFillAfter); // mAnmation.setRepeatMode(Animation.RESTART); // mAnmation.setRepeatCount(intRepeatCount); // mAnmation.setInterpolator(AnimationUtils.loadInterpolator(mContext, // com.webclient.R.anim.bounce_interpolator)); return mAnmation; } }