Styles in Android is similar in concept to CSS on web because it separates design from the content.
A style is a xml resource and it separates the design attributes from XML layout. For more general overview of these concepts, check out Styles and Themes cliffnotes.Ī style in Android is a collection of attribute/value pairs applied to a view. At the end of this exercise, you will have better understanding of some of the core features of Android like - drawables, styles and themes. The following tutorial explains how to build an application that can switch between multiple distinct themes.