3.5 Default Theme and Customizing Theme Colors
Each app has a theme that defines the default look-and-feel of the standard views you use. The theme is specified in the app’s AndroidManifest.xml
file (Section 3.7). You can customize aspects of the theme, such those that define an app’s color scheme, by defining style
resources in the styles.xml
file located in the in the app’s res/values
folder.
3.5.1 parent
Themes
The style.xml
resource file contains a style
with the name "AppTheme"
that’s referenced from the app’s AndroidManifest.xml
file to specify the app’s theme. This style
also specifies a parent
theme, which is similar to a superclass in Java—the new style
inherits its parent
theme’s attributes and their default values. Just as in a Java ...
Get Android How to Program, 3/e 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.