22
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 22.1).

Figure 22.1  BeatBox makeover

BeatBox makeover

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 shape drawables, state list drawables, and layer list drawables. All three are defined in XML files, so we group them in the category of XML drawables.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
44.212.26.248