Understanding Layout Managers
Android offers a collection of view classes that act as containers for views. These container classes are called layouts (or layout managers), and each implements a specific strategy to manage the size and position of its children. For example, the LinearLayout
class lays out its children either horizontally or vertically, one after the other. All layout managers derive from the View
class, therefore you can nest layout managers inside of one another.
The layout managers that ship with the Android SDK are defined in Table 6–2.
We will discuss these layout managers in the sections that follow. The layout manager called ...
Get Pro Android 4 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.