布局文件总结

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




评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值