Layouts and Views

  • Dave Smith
  • Erik Hellman


The Android platform is designed to operate on a variety of device types, screen sizes, and screen resolutions. To assist developers in meeting this challenge, Android provides a rich toolkit of user interface (UI) components to utilize and customize to the needs of their specific applications. Android also relies heavily on an extensible XML framework and set resource qualifiers to create liquid layouts that can adapt to these environmental changes. In this chapter, we take a look at some practical ways to shape this framework to fit your specific development needs.


Java Code View Content Custom View Public Class Custom Widget 

Supplementary material (15.6 mb)
Source code (zip 15,999 kb)

Copyright information

© Dave Smith and Erik Hellman 2016

Authors and Affiliations

  • Dave Smith
    • 1
  • Erik Hellman
    • 2
  1. 1.LittletonUSA
  2. 2.SundbybergSweden

Personalised recommendations