• 【安卓3】布局管理器


    1.LinearLayout(线性布局)

             android: orientation="vertical"                           //布局

             android: layout_width="wrap_content "             //控件宽度

             android: layout_height="fill_parent"                  //控件高度

          注意:“vertical ” :垂直布局  “horizontal”:水平布局

                   fill_parent宽度(高度)和内容的宽度(高度)相同

                   wrap_content宽度(高度)是整个父组件的宽度(高度)

                   android: layout_weight:  控制控件所占比例

    2.FrameLayout(帧布局)

                叠加效果

    3.RelativeLayout(相对布局)

                  android: layout_below                           //在某个组件的下面

                  android: layout_toLeftOf                       //在某个组件的左边

                  android: layout_toRightOf                     //在某个组件的右边

                  android: layout_alignTop                       //与某个组件上对齐

                  android: layout_alignBottom                 //与某个组件下对齐

                  android: layout_alignLeft                      //与某个组件左对齐

                  android: layout_alignRight                    //与某个组件右对齐

    4.TableLayout(表格布局)

                  注意:表格布局的组件要放在TableRow中。

    5.AbsoluteLayout(绝对布局)

                  android: layout_x              //x轴坐标值

                  android:l ayout_y              //y轴坐标值

  • 相关阅读:
    flex横向对齐即两端有靠右
    前端小功能:import和export用法
    前端小技巧:JavaScript 编码规范
    折旧记录某旅纵横app分析研究
    谷歌浏览器 快速复制请求到postman 测试接口
    聊聊Api接口优化的几个方法
    阿里云闪电立方(海量数据迁移服)
    架构设计之五视图(一)
    Python&MIDI 3(AI人工智能音乐,算法作曲)
    Windows系统命令行使用sudo安装,提示“不是内部命令”
  • 原文地址:https://www.cnblogs.com/leelee/p/6877383.html
Copyright © 2020-2023  润新知