Master the following important attributes and use them flexibly:
Android: layout_centerInParent center layout
Android: layout_centerVertical vertical center layout
Android: layout_centerHorizontal horizontal center layout
Android: layout_alignParentTop occupies the top of the container
Android: layout_alignParentBottom occupies the bottom of the container
Android: layout_alignParentLeft: left in Container
Android: layout_alignParentRight: Right of the container
Android: layout_above is located above the specified View
Android: layout_below is located below the specified View
Android: layout_toRightOf on the right of the specified View
Android: layout_toLeftOf on the left of the specified View
Android: layout_alignTop is consistent with the Top of the specified View.
Note: The preceding settings apply to RelativeLayout,
For LinerLayout, the line is simply arranged from top to bottom or from left to right.
Android: orientation in LinerLayout, if a dimension of a control, such as match_parent, is located in the current position of the control,
The entire container is filled, that is, the space in front of the control is not overwritten, and the control behind the control is not displayed.