List of usage examples for android.view.animation AlphaAnimation setDuration
public void setDuration(long durationMillis)
From source file:Main.java
public static void btnAlpha(View view) { AlphaAnimation aa = new AlphaAnimation(0, 1); aa.setDuration(1000); view.startAnimation(aa);//from w w w . j av a2s .c o m }
From source file:Main.java
public static void hideAlpha(View viewMask) { viewMask.setVisibility(View.INVISIBLE); AlphaAnimation alpha = new AlphaAnimation(1, 0); alpha.setDuration(200); viewMask.startAnimation(alpha);//from ww w .j a v a 2 s . c o m }
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);// w ww . j av a 2 s . c o m }
From source file:Main.java
public static AlphaAnimation getOutAlphaAnim() { AlphaAnimation animation = new AlphaAnimation(1, 0); animation.setDuration(1000); animation.setFillAfter(true);//w ww .j a v a 2 s . co m return animation; }
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 setAnimListView(ListView listView) { AlphaAnimation animation = new AlphaAnimation(0, 1f); animation.setDuration(4000); LayoutAnimationController controller = new LayoutAnimationController(animation, 0.5f); listView.setLayoutAnimation(controller); }
From source file:Main.java
public static Animation inAlphaAnimation() { AlphaAnimation alpha = new AlphaAnimation(0.0f, 1.0f); alpha.setDuration(1000); alpha.setInterpolator(new AccelerateInterpolator()); return alpha; }
From source file:Main.java
public static Animation outAlphaAnimation() { AlphaAnimation alpha = new AlphaAnimation(1.0f, 0.0f); alpha.setDuration(1000); alpha.setInterpolator(new AccelerateInterpolator()); return alpha; }
From source file:Main.java
public static void showAlpha(View v) { v.setVisibility(0);/* www. j a v a2 s . c o m*/ AlphaAnimation alphaAnimation = new AlphaAnimation(0, 1); alphaAnimation.setDuration(200); v.startAnimation(alphaAnimation); }
From source file:Main.java
public static final AlphaAnimation alphaInAnim() { AlphaAnimation alphaInAnim = new AlphaAnimation(0.1f, 1.0f); alphaInAnim.setDuration(500); return alphaInAnim; }