Advertisement

Layouts and UI Design

  • Grant Allen

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.

Keywords

Java Code Fill Method Child Element Layout Store Activity Layout 
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.

Supplementary material

978-1-4302-4687-9_6_MOESM1_ESM.zip (8.2 mb)
Ch06 (zip 8414 kb)

Copyright information

© Grant Allen 2015

Authors and Affiliations

  • Grant Allen
    • 1
  1. 1.LondonUK

Personalised recommendations