Introduction to Android Development layout
1. Linear Layout LinearLayout
The components in the layout are arranged next to each other, the Android:orientation property controls the arrangement direction, horizontal-horizontal, vertical-vertical
The linear layout does not wrap, and the remaining components are not displayed when the screen is out of range.
2. Table Layout Tablelayout
Inherited from the LinearLayout, its essence is still linearlayout. Manage the number of rows and columns of the table by TableRow. Adding a TableRow is one line.
3. Frame Layout Framelayout
are stacked hierarchically in the upper-left corner of the screen, followed by a control that overrides the previous control. In the framelayout layout, it is meaningless to define the location-related properties of the space.
4. Relative Layout relativelayout
The position of a subassembly within a relative layout container is always determined relative to the sibling component, the parent container.
5, android4.0 new Grid layout GridLayout
Can only be used after android4.0. Similar to the table label in HTML, the entire container is divided into rows x columns meshes, each of which can place a component.
6. Absolute layout absolutelayout
The location of its components is controlled by the developer by its own x-, y-coordinate. This layout is basically out of date.
Android Development Layout Simple Introduction