Relative layout, relative layout of android
RelativeLayout is a control placement method. By specifying the relative position between the current control and the sibling control or the parent control, you can reach the control position.
Common attributes of the first group relative layout:
Layout_below, layout_abve, layout_toLeftOf, layout_toRightOf
The value of the four attributes is the id of another control. Layout_toLeftOf is used to align the right of the current control to the left of the id control. The same is true for layout_toRightOf.
Common attributes of the second group relative layout:
Layout_alignLeft, layout_alignRight, layout_alignTop, layout_alignButtom, layout_alignBaseline
Five attributes are used for alignleft of the current widget to the left of the widget with the specified id, for example, android: layout_alignRight = "@ id/first, the other three attributes are the same.
Baseline: a line to ensure that English letters are printed neatly
Layout_alignBaseline is used to align to the control baseline.
Common attributes of the third group relative layout:
Layout_alignParentLeft, layout_alignParentRight, layout_alignParentTop, and layout_alignParentBottom are used to align with the edge of the direct parent control. The value is true or flase.
Group 4 common relative layout attributes: Used to align to the center of the parent Control
Layout_centerInParent
Layout_centerHorizontal
Layout_centerHorizontal