4 Android绝对布局
布局的类型
Android中的布局
(1) 线性布局:linearlayout
(2) 相对布局:relativelayout
(3) 表格布局:tablelayout
(4) 网格布局:gridlayout
(5) 层次布局:framelayout
(6) 绝对布局:absolutelayout
① 绝对布局需要通过指定x、y坐标来控制每个控件的位置。
② 放入该布局的组件需要通过Android:layout-x和Android:layout-y俩个属性指定其准确的坐标值。
③ 多用于游戏开发中
④ 由于多分辨率兼容麻烦,绝对布局Android1.5后被Google弃用
4 Android绝对布局
最新推荐文章于 2023-01-15 00:15:12 发布