Android Programming The Big Nerd Ranch Guide, 3rd Edition

(Brent) #1
Modifying the theme

427


  • Theme.AppCompat.Light.DarkActionBar – a light theme with a dark toolbar


Change the parent theme to Theme.AppCompat to give BeatBox a dark theme as its base.


Listing 22.8  Changing to a dark theme (res/values/styles.xml)




...

Run BeatBox to see your new dark theme (Figure 22.4).


Figure 22.4  A dark BeatBox


http://www.ebook3000.com

Free download pdf