Advertisement

Pro Android 5 pp 163-167 | Cite as

Styles and Themes

  • Dave MacLean
  • Satya Komatineni
  • Grant Allen

Abstract

Thus far, we have covered some fundamentals of the Android user interface (UI). In this chapter, we are going to discuss styles and themes, which help to encapsulate control-appearance attributes for easier setup and maintenance. Android provides several ways to alter the style of views in your application, in XML and in code. We’ll first cover using markup tags in strings and then how to use spannables to change specific visual attributes of text. But what if you want to control how things look using a common specification for several views or across an entire activity or application? We’ll discuss Android styles and themes to show you how.

Keywords

Entire Activity Common Specification View Attribute View Definition Easy Setup 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© Dave MacLean, Satya Komatineni, and Grant Allen 2015

Authors and Affiliations

  • Dave MacLean
    • 1
  • Satya Komatineni
    • 1
  • Grant Allen
    • 1
  1. 1.FLUnited States

Personalised recommendations