out Alpha Animation - Android Animation

Android examples for Animation:Alpha Fly Animation

Description

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 {
    static public Animation outAlpha() {
        AlphaAnimation alpha = new AlphaAnimation(1, 0);
        alpha.setDuration(100);/* w  ww  . j  a  v a 2 s. co  m*/
        alpha.setInterpolator(new AccelerateInterpolator());
        return alpha;
    }
}

Related Tutorials