October 2015
Intermediate to advanced
834 pages
20h 22m
English
| 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 ...
Read now
Unlock full access