23 XML Drawables

Now that BeatBox has been themed, it is time to do something about those buttons.

Currently, the buttons do not show any kind of response when you press on them, and they are just blue boxes. In this chapter, you will use XML drawables to take BeatBox to the next level (Figure 23.1).

Figure 23.1  BeatBox makeover

Screenshot shows BeatBox app screen in Android. The circular buttons are placed in rows and columns.

Android calls anything that is intended to be drawn to the screen a drawable, whether it is an abstract shape, a clever bit of code that subclasses the Drawable class, or a bitmap image. In this chapter, you will see state list drawables, shape drawables, and layer list drawables. All three ...

Get Android Programming: The Big Nerd Ranch Guide, Third Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.