Android Programming The Big Nerd Ranch Guide by Bill Phillips, Chris Stewart, Kristin Marsicano (z-lib.org)

(gtxtreme123) #1

Chapter 23  XML Drawables


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