List of usage examples for android.view.animation AlphaAnimation AlphaAnimation
public AlphaAnimation(float fromAlpha, float toAlpha)
From source file:Main.java
public static AlphaAnimation getOutAlphaAnim() { AlphaAnimation animation = new AlphaAnimation(1, 0); animation.setDuration(1000);/*w ww . jav a 2s. c o m*/ animation.setFillAfter(true); return animation; }
From source file:Main.java
public static final AlphaAnimation alphaInAnim() { AlphaAnimation alphaInAnim = new AlphaAnimation(0.1f, 1.0f); alphaInAnim.setDuration(500);/*from ww w.ja v a 2s .c om*/ return alphaInAnim; }
From source file:Main.java
public static void btnAlpha(View view) { AlphaAnimation aa = new AlphaAnimation(0, 1); aa.setDuration(1000); view.startAnimation(aa); }
From source file:Main.java
public static Animation alphaAnimation() { Animation animation = new AlphaAnimation(1.0f, 0.0f); animation.setDuration(500); return animation; }
From source file:Main.java
public static AlphaAnimation createAlphaAnimation(float fromAlpha, float toAlpha) { AlphaAnimation tsAnim = new AlphaAnimation(fromAlpha, toAlpha); return tsAnim; }
From source file:Main.java
public static Animation getFadeInAnimation() { Animation animation = new AlphaAnimation(0.0f, 1.0f); animation.setDuration(600); return animation; }
From source file:Main.java
public static Animation getFadeOutAnimation() { Animation animation = new AlphaAnimation(1.0f, 0.0f); animation.setDuration(600); return animation; }
From source file:Main.java
public static void appear(long during, View view) { AlphaAnimation appearAnimation = new AlphaAnimation(0, 1); appearAnimation.setDuration(during); view.startAnimation(appearAnimation); }
From source file:Main.java
public static Animation getDefaultAnimation() { AlphaAnimation animation = new AlphaAnimation(0f, 1f); animation.setDuration(300 / 2); return animation; }
From source file:Main.java
public static void hideAlphaAnimation(View v, long durationMillis) { AlphaAnimation animation = new AlphaAnimation(1, 0); animation.setDuration(durationMillis); v.startAnimation(animation);/*from w w w . j ava 2 s. c o m*/ }