Aim:
Aim: Write a program to study different types of animation
The Graphics package in Android provides a set of classes and methods for creating 2D graphics in an Android app.
It includes classes for drawing shapes, text, and images, as well as for performing basic animations.
Process:
To implement animations using the Graphics package, you can follow these steps:
Create a custom View class that extends the View class.
Override the onDraw() method in the custom View class to draw the initial state of the animation.
Create a Thread or Handler to update the state of the animation on a regular basis.
Use the Canvas object in the onDraw() method to draw the current state of the animation on the view.
Continue updating the state of the animation and redrawing the view until the animation is complete.
