Skip to main content

Layouts and UI Design

  • Chapter

Abstract

In this chapter, I explore how to expand your knowledge of simple widgets so it covers the full canvas of controlling your overall application and activity layout and design. I use Android layouts as the definition-based way of describing how to organize and display all of the widgets and other UI artifacts that comprise your user interface. In order to understand how layouts work, you need to think of layouts as containers. A layout stores all of the widgets and their attributes so that they are ready to be used, just like ingredients in kitchen containers. The widgets I introduced in Chapter 5 are fine, but as soon as you want two or more widgets on a screen, it becomes increasingly cumbersome to manage each one—each has its own position, spacing, and inter-widget relationships—if you attempt to manage each individually. You have already seen a hint of how managing groups of widgets makes your life easier—through the RadioGroup element, which allows the aggregate control of multiple RadioButton widgets.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   34.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   44.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Author information

Authors and Affiliations

Authors

Electronic Supplementary Material

Below is the link to the electronic supplementary material.

Ch06 (zip 8414 kb)

Rights and permissions

Reprints and permissions

Copyright information

© 2015 Grant Allen

About this chapter

Cite this chapter

Allen, G. (2015). Layouts and UI Design. In: Beginning Android. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-4687-9_6

Download citation

Publish with us

Policies and ethics