Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Android applications use activities and there can be only one active Activity at any given time. The Activity holds the SurfaceView where we place our UI elements. The SurfaceView is nothing more than a window that we interact with via touching (if supported) and drawing on its surface. The drawing surface is the Canvas.
We can draw any 2D shape we want on the Canvas. It supports coloring, drawing, text, geometries, images, and applying various filters and transformations. We’ll review all of these as we take a look at the 2D library capabilities using the Canvas.