add subtle visual cues
Animations are especially useful when the screen changes state, such as when content loads or new actions become avaiable.
add a polished look
Crossfade animation(dissolve)
Set up Animation:
1. Create member variables for the views;
2.For the view that is being faded in, set its visibility to GONE.
this prevents the view from taking up layout space and omits it from layout calculations, speeding up processing.
3.Cache the config_shortAnimTime system property
This property defines a standard "short" duration for animation.
This duration is ideal for subtle animations or animations that occur very frequently.
config_longAnimTime and config_mediumAnimTime are also avaiable is you wish to use them.
Crossfade the views:
1.For the view that is fading in, set the alpha value to 0 and visibility to VISIBLE.
2.For the view that is fading in, animate its alpha value from 0 to 1.
At the same time, for the view that is fading out, animate its alpha value from 1 to 0;