List of usage examples for android.view.animation AlphaAnimation setDuration
public void setDuration(long durationMillis)
From source file:Main.java
public static Animation fadeInLong(final android.view.animation.Animation.AnimationListener animationlistener) { final AlphaAnimation alphaanimation = new AlphaAnimation(0F, 1F); alphaanimation.setDuration(600L); alphaanimation.setInterpolator(new LinearInterpolator()); alphaanimation.setAnimationListener(animationlistener); return alphaanimation; }
From source file:Main.java
public static Animation fadeOut(final android.view.animation.Animation.AnimationListener animationlistener) { final AlphaAnimation alphaanimation = new AlphaAnimation(1F, 0F); alphaanimation.setDuration(300L); alphaanimation.setInterpolator(new LinearInterpolator()); alphaanimation.setAnimationListener(animationlistener); return alphaanimation; }
From source file:Main.java
public static AlphaAnimation getaAlphaAnimation(int from, int to, int duration) { AlphaAnimation alphaAnimationShow = new AlphaAnimation(from, to); alphaAnimationShow.setDuration(duration); return alphaAnimationShow; }
From source file:Main.java
public static Animation fadeIn(final android.view.animation.Animation.AnimationListener animationlistener) { final AlphaAnimation alphaanimation = new AlphaAnimation(0F, 1F); alphaanimation.setDuration(300L); alphaanimation.setInterpolator(new LinearInterpolator()); alphaanimation.setAnimationListener(animationlistener); return alphaanimation; }
From source file:Main.java
public static AlphaAnimation getAlphaAnimation(Float fromAlpha, Float endAlpha, long durationMillis) { AlphaAnimation inAlphaAnimation = new AlphaAnimation(fromAlpha, endAlpha); inAlphaAnimation.setDuration(durationMillis); return inAlphaAnimation; }
From source file:Main.java
public static void setAlphaAnim(float fromAlpha, float toAlpha, long duration) { AlphaAnimation alphaAnimation = new AlphaAnimation(fromAlpha, toAlpha); alphaAnimation.setDuration(duration); alphaAnimation.setInterpolator(new LinearInterpolator()); }
From source file:Main.java
public static void alphaAnimation(View v, float fromAlpha, float toAlpha, long durationMillis, boolean fillAfter) { AlphaAnimation animation = new AlphaAnimation(fromAlpha, toAlpha); animation.setDuration(durationMillis); animation.setFillAfter(fillAfter);/* www. j a v a 2 s . co m*/ animation.setRepeatMode(Animation.REVERSE); v.startAnimation(animation); }
From source file:Main.java
public static AlphaAnimation getAlphaAnimation(float fromAlpha, float toAlpha, int intDuration, boolean boolFillAfter) { AlphaAnimation mAnmation = new AlphaAnimation(fromAlpha, toAlpha); mAnmation.setDuration(intDuration); mAnmation.setFillAfter(boolFillAfter); // mAnmation.setRepeatMode(Animation.RESTART); // mAnmation.setRepeatCount(intRepeatCount); // mAnmation.setInterpolator(AnimationUtils.loadInterpolator(mContext, // com.webclient.R.anim.bounce_interpolator)); return mAnmation; }
From source file:Main.java
public static void setAlphaAnimation(View view, float fromAlpha, float toAlpha, int intDuration, boolean boolFillAfter) { AlphaAnimation mAnmation = new AlphaAnimation(fromAlpha, toAlpha); mAnmation.setDuration(intDuration); mAnmation.setFillAfter(boolFillAfter); // mAnmation.setRepeatMode(Animation.RESTART); // mAnmation.setRepeatCount(intRepeatCount); // mAnmation.setInterpolator(AnimationUtils.loadInterpolator(mContext, // com.webclient.R.anim.bounce_interpolator)); view.startAnimation(mAnmation);/*w ww. j a v a2 s. c om*/ }
From source file:Main.java
private static void fadeInPreHoneyComb(final View view) { AlphaAnimation alphaAnimation = new AlphaAnimation(0.0F, 1.0F); alphaAnimation.setDuration(ANIMATION_DURATION); view.setVisibility(View.VISIBLE); view.startAnimation(alphaAnimation); }