CHAPTER 4: Introduction to XML: Defining an Android App, Its Design, and Constants 113
When the Android OS ascertains that your application is running on a hardware device that is running
version 3.0, 3.1, or 3.2 of the Android OS, it will insert the API Level 11 folder /res/values-v11 XML style
definition(s), shown in Figure 4-6. Since this style definition (or definitions if you add any child styles
in the empty container, as it is intended for you to do) features a parent of android:Theme.Holo.Light,
the HOLO Light OS theme will be inserted into this XML definition chain, and this theme will be the
one that will be utilized for the Android application whenever it is running on Android 3.0, 3.1, and
3.2 devices.
Figure 4-7 shows the /res/values-v14 alternate folder, with a third styles.xml definition, which
covers Android 4.0 and later OS versions, which would include 4.0.4, 4.1.2, 4.2.2, 4.3.1, and 4.4.4.
The same logic applies here, and to implement the new HOLO Light Theme with a Dark Action Bar,
all you need to do is change the AppbaseTheme style definition to point to the parent OS style of
android:Theme.Holo.Light.DarkActionBar and the new XML style reference chain that will be
utilized for Android 4.x devices will be as follows:
AndroidManifest Theme > AppTheme > AppBaseTheme > android:Theme.Holo.Light.DarkActionBar
Figure 4-7. The third styles.xml file, located in the /res/values-v14 alternate folder with