start Animation Alpha for a View - Android Animation

Android examples for Animation:Alpha Fly Animation

Description

start Animation Alpha for a View

Demo Code


import android.support.v4.view.animation.FastOutLinearInInterpolator;
import android.view.View;

public class Main{
    public static void startAnimationAlpha(View view) {
        view.setAlpha(0f);/* w w w  .j av a 2 s.c o  m*/
        view.animate().setDuration(500)
                .setInterpolator(new FastOutLinearInInterpolator())
                .alpha(1f).start();
    }
}

Related Tutorials