get Fade Out Alpha Animation - Android android.view.animation

Android examples for android.view.animation:Fade Animation

Description

get Fade Out Alpha Animation

Demo Code

import android.view.animation.AlphaAnimation;

public class Main {

  public static AlphaAnimation getOutAlphaAnim() {
    AlphaAnimation animation = new AlphaAnimation(1, 0);
    animation.setDuration(1000);/*  w  ww  .  j ava 2  s.  c o  m*/
    animation.setFillAfter(true);
    return animation;
  }

} 

Related Tutorials