安卓六大布局

安卓六大布局方式:
线性布局(LinearLayout)
框架布局(FrameLayout)
表格布局(TableLayout)
相对布局(RelativeLayout)
绝对布局(AbsoluteLayout)
网格布局(GridLayout)

LinearLayout 的常用xml 属性及方法

xml属性
gravity setGravity(int) 设置布局管理器内组件的对齐方式
orientation setOrientation(int) 设置布局管理器内组件的排列方式,horizontal横,vertical竖

猜你喜欢

转载自www.cnblogs.com/acg88688/p/9391655.html