美文网首页
相关约束参数的含义

相关约束参数的含义

作者: 少年你这是喜脉啊 | 来源:发表于2017-09-14 11:29 被阅读0次

    android:layout_toLeftOf="@+id/name" 指定控件的左边
    android:layout_toRightOf="@+id/name" 指定控件的右边
    android:layout_above="@+id/name" 指定控件的上边
    android:layout_below="@+id/name" 指定控件的下边
    android:layout_alignLeft="@+id/name" 与指定控件左对齐
    android:layout_alignRight="@+id/name" 与指定控件右对齐
    android:layout_alignTop="@+id/name" 与指定控件顶部对齐
    android:layout_alignBottom="@+id/name" 与指定控件底部对齐
    android:layout_alignParentLeft="true" 与父控件的左边对齐
    android:layout_alignParentRight="true" 与父控件的右边对齐
    android:layout_alignParentTop="true" 与父控件顶部对齐
    android:layout_alignParentBottom="true" 与父控件底部对齐
    android:layout_centerHorizontal="true" 在父控件中水平居中
    android:layout_centerVertical="true" 在父控件中垂直居中
    android_layout_centerInParent="true" 在父控件中中部居中

    相关文章

      网友评论

          本文标题:相关约束参数的含义

          本文链接:https://www.haomeiwen.com/subject/voocsxtx.html