zoukankan      html  css  js  c++  java
  • Android 的相对布局的一些使用(转)

    android:layout_above="@id/label"                将此控件的底部置于给定的控件之上

    android:layout_below="@id/label"                将此控件的顶部置于给定的控件之下

    android:layout_toLeftOf="@id/label"             将此控件的右边缘同给定ID的控件的左边缘对齐

    android:layout_toRightOf="@id/label"           将此控件的左边与同给定ID的控件的右边缘对齐

    android:layout_alignBaseline="@id/"             将此控件的baseline同给定ID的控件的baseline对齐

    android:layout_alignLeft="@id/"                   将此控件的左边边缘同给定ID的控件的左边边缘对齐

    android:layout_alignTop="@id/"                   将此控件的顶部边缘同给定ID的控件的顶部边缘对齐

    android:layout_alignRight="@id/"                 将此控件的右边缘同指定ID的控件的右边缘对齐

    android:layout_alignBottom="@id/"              将此控件的底部边缘同指定ID的控件的底部边缘对齐

    android:layout_alignParentLeft="true"           如果该值为true,则将当前控件同其父控件的左边边缘对齐

    android:layout_alignParentTop="true"           如果该值为true,则将当前控件同其父控件的顶部对齐

    android:layout_alignParentRight="true"         如果该值为true,则将当前控件同其父控的右边对齐

    android:layout_alignParentBottom="true"      如果该值为true,则将当前控件同其父控件的底部对齐

    android:layout_centerInParent="true"           若“真”则将当前控件至于其父控件于水平方向和垂直方向的双向居中

    android:layout_centerHorizontal="true"         若“真”则将当前控件至于其父控件于垂直方向上的居中

    android:layout_centerVertical="true"             若“真”则将当前控件至于其父控件于水平方向上的居中

  • 相关阅读:
    开发者入门必读:最值得看的十大机器学习公开课
    ansible 文件模块,很实用
    前端之Bootstrap框架
    47考题整理
    前端之jQuery
    前端之BOM和DOM
    python补充之进制转换、exec、eval、compile
    JavaScript
    css(2)
    前端之form表单与css(1)
  • 原文地址:https://www.cnblogs.com/bluestorm/p/2442052.html
Copyright © 2011-2022 走看看