A (175)

(Tuis.) #1
CHAPTER 9: Android Graphic Design: Making Your UI Designs Visual 349

To implement the NinePatchDrawable, you will add an android:background="ninepatchasset"
parameter into your parent tag, as shown in Figure 9-35. This background
plate parameter will reference a ninepatchasset.9.png file, which you will copy into the
/res/drawable folder from wherever you saved it earlier, or from the book software repository, which
contains all of this book’s Java code, XML markup, and assorted new media assets.


Figure 19-34. Test your multi-state ImageButtons (left) and the NinePatchDrawable (middle and right) in the AVD

Free download pdf