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, ...
Get Learning Android™ Application Programming: A Hands-On Guide to Building Android Applications 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.