Common Layout in Android and common layout in Android
1. Linear layout LinearLayout
Orientation: vertical, vertical, horizontal, horizontal
Gravity: Alignment mode. The alignment mode between the child control and the current control.
Layout_gravity: Alignment of the current control relative to the parent Control
Margin: the spacing between the current control and the surrounding area.
Padding: the padding between the child control in the current control and the surrounding area of the current control.
2. RelativeLayout is relative layout starting from the upper left corner. To control the position, you must set the position of each control relative to other controls.
Layout_below: under which the control is located
Layout_above: the control on which it is located
Layout_toLeftOf: Specifies the control on the left.
Layout_toRightOf: specifies the right of the control to which the current control is located
Layout_alignParentRight: the method of the current control based on the parent form
Layout_centerHorizontal: horizontally centered
Layout_centerVertical: vertical center
Layout_centerInParent: located in the middle of the parent form
3. FrameLayout
The child controls in the frame layout are stacked layer by layer up.
4. TableLayouts
One TableRow in TableLayout represents a row, and one control in TableRow represents a column.
5. Absolute layout (abandoned) AbsoluteLayou