Android Utililty Methods View Fade In

List of utility methods to do View Fade In

Description

The list of methods to do View Fade In are organized into topic(s).

Method

voidfadeIn(View view)
fade In
fadeIn(view, 0F, 1F, 400);
view.setEnabled(true);
voidfadeIn(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);
voidsetAlpha(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);
...