Chapter 4. Designing Layouts

In this chapter we will learn some UI basics, such as how we control the size and position of the widgets in our layouts. We will further come to understand the slightly scary XML code and see new ways we can avoid having to edit the code directly by using the UI designer, by covering the following:

  • Looking at the code structure underlying a UI design/layout
  • Learning how to position widgets precisely
  • Building three really simple UI designs from scratch

Exploring Android UI design

We will see with Android UI design that so much of what we learn is context sensitive. The way that a given widget's x property will influence its appearance might depend on a widget's y property. It probably isn't possible to learn this verbatim. ...

Get Android Programming for Beginners 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.