Summary

Working through the examples in this chapter should have given you a good look into the layouts that are available by default in Android, as well as a look at how they are implemented (and how new ones can be implemented when needed). In most cases, these ViewGroup implementations will serve any layout needs you have, but it remains important to keep the following principals in mind when building Android layouts:

  • Different devices have different size and resolution screens
  • Use negative space (white space) and lines to separate groups of widgets
  • You will almost certainly need to modify the layout in the future

That last point is particularly important when choosing to use the RelativeLayout class. While it offers your far more power than the ...

Get Android User Interface Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.