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"             若“真”则将当前控件至于其父控件于水平方向上的居中

  • 相关阅读:
    阅读进度条的实现
    获取radio选中的值
    Vue的学习(六)
    Vue的学习(三)
    C#委托详解
    C#泛型和非泛型
    C#装箱和拆箱
    C#内存泄漏的事例
    C#windows服务开发(一)
    C#windows服务开发
  • 原文地址:https://www.cnblogs.com/bluestorm/p/2442052.html
Copyright © 2011-2022 走看看