Layout Linearlayout:linearlayout is a linear layout that can be set by setting the Orientaltion property to a linear layout in the vertical direction or a linear layout in the horizontal direction. Vertical Linear layout: android:orientation= "vertical" horizontal line layout: android:orientation= "Horizontal" It is important to note that internal controls cannot set the width to match if the layout is horizontal. _parent, because then there will be a control that fills the entire horizontal direction, with no other controls in place. The relativelayout:relativelayout is relative to the layout, and the relative layout is set by setting the way:
<!--相对于父布局-->
<android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_centerInParent="true"
android:layout_alignParentButton="true"
>
<!--相对于控件-->
<android:layout_above="@id/button3"
android:layout_toLeftOf="@id/button3"
android:layout_toRightOf="@id/button3"
android:layout_below="@id/button3"
>
Tablelayout:tablelayout is the table layout.
<TableRow>
<!--第一行第一列-->
<TextView />
<!--第一行第二列-->
<TextView />
</TableRow>
<TableRow>
<!--第二行第一列-->
<TextView />
<!--第二行第二列-->
<TextView />
</TableRow>
When a row has only one column, you can merge cells by android:layout_span= "2" by android:stretchcolumns= "" To set the column stretch to fill the screen blank, set to 1 to extrude the first column, Set to 0 to extrude the second column units and dimensions px to pixels, for the picture pt is the number of points, for the text but PX and PT have obvious flaws, on different resolutions of the screen, the same pixel and the number of points displayed on the screen will not be the same size. DP is a density-independent pixel for consistent display of different screens, more for picture SP as scalable pixel, for solving text size adaptation issues
From for notes (Wiz)
The UI of Android learning experience