Learning Android™ Application Programming: A Hands-On Guide to Building Android Applications
by James Talbot, Justin McLean, Jorge Hernandez
Using Styles and Themes
A style in Android is simply a collection of attribute–value pairs that can be applied to a View, an Activity, or even the entire application. You can set styles such as layout_width or textColor. Styles, especially for Activities, are referred to as themes in Android, but they work nearly the same way. The only difference is that themes are scoped to Activities and are generally application wide. They are simply styles designed to provide a uniform experience between applications. There are also themes built into Android to give an application its look and feel.
Currently it’s not possible for end users to download a collection of styles from Google Play to create their own styles and themes. Styles are for developers, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access