布局文件有:1.FrameLayout 2.LinearLayout 3.RelativeLayout 4.Absolutelayout 5.TableLayout 6.GridLayout
1.FrameLayout
to load child one above another, like cards inside a frame, we can place one above another or anywhere inside the frame.
2.LinearLayout
means you can align views one by one (vertically/ horizontally,只有LinearLayout才有垂直和水平排版).
3.RelativeLayout
means based on relation of views from its parents and other views.(没有垂直和水平排版)
4.AbsoluteLayout is for absolute positioning i.e. you can specify exact co-ordinates where the view should go.
6.GridLayout — Introduced in Android 4.0 (API level 14)
, the Grid Layout uses a rectangular grids to layout Views
in a series of rows and columns.