Common layout:
"Linear layout":
1, there are two layout direction: horizontal or vertical;
2, in the vertical layout: left-aligned, right-aligned, horizontal center in effect;
3, in the horizontal layout: top alignment, bottom alignment, vertical center in effect.
Summary: "It is not effective to move it in the direction of the corresponding layout." 】
4, Weight: According to the "remaining" screen size for proportional distribution.
Relative layout: All align (aligned) are aligned.
1, no weight, direction! The default is the upper-left corner
2, can be relative to the parent element up and down around the alignment, "layout_alignparentxxx"
Centered horizontally, centered vertically, horizontally, vertically, relative to the parent element. "Layout_xxx"
3, can be relative to other components up and down around the alignment. "Layout_alignxxx"
4, can be layout and other components above, below, left, to the right. "Layout_toxxxof"
"Frame Layout":
1, the default is the upper left corner;
2, can not be compared to other components layout;
Features of the layout in Android