zoukankan      html  css  js  c++  java
  • 安卓:线性布局

    LinearLayout:

         1.android:layout_height属性:设置控件的高度。

         2.android:layout_width属性:设置控件的宽度。

         上面这两个属性,都有3种取值方式:分别是:fill_parent、match_parent、wrap_parent.

         fill_parent:表示强制性使控件扩展,以填充布局单元内尽可能多的空间,在空间的允许下,可以占满 屏幕。

    match_parent:表示只需要显示控件的全部内容即可,在安卓2.2之后的版本中使用。

       wrap_parent:和上面的match_parent作用一样。

       3.android:layout_gravity属性:设置控件显示的位置,默认取值为top,表示顶部对齐。如果希望居中对齐,可取值为center_vertical表示垂直居中,或center_horizontal表示水平居中。、

       4.Android:layout_margin属性:设置控件上、下、左、右边框的边距。

       5.Android:layout_marginBottom属性:设置控件下边框的边距。

       6.Android:layout_marginLeft属性:设置控件左边框的边距。

       7.Android:layout_marginRight属性:设置控件右边框的边距。

       8.Android:layout_marginTop属性:设置控件上边框的边距。

      

  • 相关阅读:
    工作流程在线编辑
    利用IIS导出,导入快速部署 web站点
    调用CRM自己的Dialogue
    简单粗爆的解决同时布CRM引起的死锁问题
    CRM 2013 自动发送报表
    CRM 2013 中业务流程的
    调试CRM JS开发
    CRM ribbon按钮上引用JS库
    CRM Look Up 解决方案
    Windows Azure 上传 VM
  • 原文地址:https://www.cnblogs.com/qiluboy/p/5247564.html
Copyright © 2011-2022 走看看