20 Styles and Themes

Now that BeatBox sounds intimidating, it is time to make it look intimidating, too.

So far, BeatBox sticks with the default user interface styles. The buttons are stock. The colors are stock. The app does not stand out. It does not have its own brand.

We can restyle it. We have the technology.

Figure 20.1 shows the better, stronger, faster – or at least more stylish – BeatBox.

Figure 20.1  A themed BeatBox

A themed BeatBox

Color Resources

Begin by defining a few colors that you will use throughout the chapter. Create a colors.xml file in res/values.

Listing 20.1  Defining a few colors (res/values/colors.xml ...

Get Android Programming: The Big Nerd Ranch Guide, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.