July 2015
Beginner to intermediate
600 pages
18h 59m
English
The description of style inheritance earlier in the chapter does not explain the full story. You may have noticed a switch in inheritance style as you were exploring the theme hierarchy. The AppCompat themes used the name of the theme to indicate inheritance until you arrive at the Platform.AppCompat theme.
<style name="Platform.AppCompat" parent="android:Theme.Holo"> ... </style>
Here, the inheritance naming style changes to the more explicit parent attribute style. Why?
Specifying the parent theme in the theme name only works for themes that exist in the same package. So you will see the Android OS themes use the theme name inheritance style most of the time, and you will see ...
Read now
Unlock full access