Android offers a variety of tools that allow us to produce graphic images and animations. From simple color and shape control and transitional animations to full blown 3D rendering, this wide range of functionality means that we can produce graphics that best suit the needs of our applications and the demands of our target devices.
Android has a powerful 2D graphics library and unless an application requires fast, responsive animations, it is well worth first considering the android.graphics.drawable and the android.view.animation packages.
Generally speaking, when dealing with the android.graphics.drawable
package we use the abstract class Drawable, or rather we use extensions of it such as BitmapDrawable, AnimationDrawable, or
ShapeDrawable.
The simplest way to produce 2D graphics is to draw them directly onto a view (generally an ImageView). This way, the system's view hierarchy takes care of displaying our graphics.
For greater control, Android provides the BitmapFactory class...