List of utility methods to do View Fade In
void | fadeIn(View view) fade In fadeIn(view, 0F, 1F, 400); view.setEnabled(true); |
void | fadeIn(View view, float startAlpha, float endAlpha, long duration) fade In if (view.getVisibility() == View.VISIBLE) return; view.setVisibility(View.VISIBLE); Animation animation = new AlphaAnimation(startAlpha, endAlpha); animation.setDuration(duration); view.startAnimation(animation); |
void | setAlpha(View view, float alphaValue) set Alpha if (alphaValue == 1) { view.clearAnimation(); } else { AlphaAnimation alpha = new AlphaAnimation(alphaValue, alphaValue); alpha.setDuration(0); alpha.setFillAfter(true); view.startAnimation(alpha); ... |