Create alpha animation - Android android.view.animation

Android examples for android.view.animation:Color Animation

Description

Create alpha animation

Demo Code

import android.view.View;

public class Main{


    public static void alpha(View view, int alpha, int duration,
            int startDelay) {
        view.animate().alpha(alpha).setDuration(duration)
                .setStartDelay(startDelay);
    }//  ww  w.j av  a 2s.co m

}

Related Tutorials