In this chapter, we have seen how to get the most out of Android layouts. This has involved deciding which layout type to use for which purpose, and although there are many others, the linear and relative layouts offer the functionality and flexibility for very many possible layouts. Once a layout has been selected, we can then organize the space with weight and gravity properties. The process of designing layouts for a variety of possible screen sizes was greatly helped by employing the percent library and PercentRelativeLayout.
The biggest challenge a developer faces when designing Android layouts for an enormous number of real world devices our apps might find themselves running on. Fortunately, the use of resource designation makes light work of this.
With a working layout in place, we can move on to look at how we can now use this space to display some useful information. This will take us on to look at how lists and their data are managed by the recycler view, which we shall...