Animation
• Animation is the process of adding a motion effect to any view,
image, or text. With the help of an animation, you can add motion or
can change the shape of a specific view. Animation in Android is
generally used to give your UI a rich look and feel. The animations are
basically of three types as follows:
• Property Animation
• View Animation
• Drawable Animation
1. Property Animation
• Property Animation is one of the robust frameworks which allows
animation almost everything.
• This is one of the powerful and flexible animations which was
introduced in Android 3.0.
• Property animation can be used to add any animation in the
CheckBox, RadioButtons, and widgets other than any view.
2. View Animation
• View Animation can be used to add animation to a specific view to
perform tweened animation on views.
• Tweened animation calculates animation information such as size,
rotation, start point, and endpoint.
• These animations are slower and less flexible. An example of View
animation can be used if we want to expand a specific layout in that
place we can use View Animation.
3. Drawable Animation
• Drawable Animation is used if you want to animate one image over
another.
• The simple way to understand is to animate drawable is to load the
series of drawable one after another to create an animation.
• A simple example of drawable animation can be seen in many apps
Splash screen on apps logo animation.
Methods of Animation