关闭

布局文件总结

127人阅读 评论(0) 收藏 举报
分类:

布局文件有: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.




0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:89740次
    • 积分:3122
    • 等级:
    • 排名:第11046名
    • 原创:110篇
    • 转载:43篇
    • 译文:117篇
    • 评论:3条
    最新评论