Chapter 4

Graphics and Touch Events

Thus far we have explored how we can capture and manipulate photographic images. Of course, that isn't all that Android has to offer in terms of images. In this chapter, we'll change up a bit and look at how we can create images by drawing graphical elements and textual elements on a Canvas. Related to this, we'll explore the capabilities provided by Android for working with touchscreens. In particular we'll build a touchscreen drawing application.

Get Pro Android Media: Developing Graphics, Music, Video, and Rich Media Apps for Smartphones and Tablets now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.