25XML Drawables And 9-Patches

In the last chapter, you quickly built a TV remote control interface using advanced layout tips and tricks. It looks okay, but maybe a little drab because it uses the stock Android look and feel for all of its buttons. In this chapter, you will use two new tools to give it a completely unique look and feel.

Figure 25.1  RemoteControl makeover

RemoteControl makeover

Both of these tools are drawables. 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. You have already seen one kind of drawable: BitmapDrawable ...

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

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