Android Programming The Big Nerd Ranch Guide, 3rd Edition

(Brent) #1

Chapter 23  XML Drawables


442

Run BeatBox and press a button. The button’s background changes (Figure 23.4). Pretty slick, right?


Figure 23.4  BeatBox, now with a pressed button state


State list drawables are a handy customization tool. Many other states are also supported, including
disabled, focused, and activated. Check out the documentation at developer.android.com/guide/
topics/resources/drawable-resource.html#StateList for details.

Free download pdf