Create out Alpha Animation - Android Animation

Android examples for Animation:Alpha Fly Animation

Description

Create out Alpha Animation

Demo Code


//package com.java2s;
import android.view.animation.AccelerateInterpolator;
import android.view.animation.AlphaAnimation;
import android.view.animation.Animation;

public class Main {
    public static Animation outAlphaAnimation() {
        AlphaAnimation alpha = new AlphaAnimation(1.0f, 0.0f);
        alpha.setDuration(1000);//from w  ww  .jav  a  2s  .c  o  m
        alpha.setInterpolator(new AccelerateInterpolator());
        return alpha;
    }
}

Related Tutorials