Java tutorial
//package com.java2s; import android.view.View; import android.view.animation.AlphaAnimation; public class Main { public static void setAlphaAnimation(View view, 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)); view.startAnimation(mAnmation); } }