5 Graphics, Drawing, and Audio

Chapter Objectives

In this chapter you will:

  Learn to draw to a canvas.

  Examine the process of adding drawn elements and user interface controls to a layout.

  Understand how to add and manipulate ImageViews programmatically.

  Build frame-by-frame animations.

  Explore a turn-based game containing animation.

  Understand the Android Animate library.

  Explore the MediaPlayer for audio.

  5.1 Graphics in Android

Graphics are an important part of any Android application. A graphic element can appear as a simple background image, an icon, a component in a sophisticated user interface, or as a moving object with interactive behavior in a game. Before developing an application, it is always a good idea ...

Get Android Programming Concepts 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.