Code example for AlphaAnimation

Methods: setDurationsetInterpolator

0
        } 
 
        @Override 
        public void setAlpha(float alpha) {
            AlphaAnimation invisibleAnim =
                new AlphaAnimation(alpha != 0.0f ? 0.0f : 1.0f, alpha);
            invisibleAnim.setDuration(0);
            invisibleAnim.setInterpolator(new LinearInterpolator());
            view.startAnimation(invisibleAnim);
        } 
    } 
     
    private static class HoneycombView extends GingerbreadView { 
        @Override 
        public void setAlpha(float alpha) {
            view.setAlpha(alpha);
        } 
    } 
     
} 
Connect your IDE to all the code out there  Get Codota for Java