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

(gtxtreme123) #1
Modifying the theme


  • 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

Free download pdf