zoukankan      html  css  js  c++  java
  • layout_alignleft layout_toleftof区别,详解RelativeLayout布局属性

     

    android:layout_above 底部对齐上边缘 默认位于父布局的左边
    android:layout_below 顶部对齐下边缘 默认位于父布局的左边
    android:layout_toLeftOf 右边对齐左边 默认是位于父布局的顶部
    android:layout_toRightOf 左边对齐右边 默认是位于父布局的顶部

    android:layout_alignBaseline 中间基线对齐
    android:layout_alignBottom 底部对齐 默认位于父布局的左边
    android:layout_alignTop 顶部对齐 默认位于父布局的左边
    android:layout_alignLeft 左边对齐 默认位于父布局的上边
    android:layout_alignRight 右边对齐

    android:alignParentBottom 底部和父控件的底部对齐 TRUE 默认左下
    android:layout_alignParentLeft 左边与父控件的左边对齐 TRUE 默认左上
    android:layout_alignParentRight 右边与父控件的右边对齐 TRUE 默认右上
    android:layout_alignParentTop 顶部与父控件的顶部对齐 TRUE 默认左上
    android:layout_centerHorizontal 水平居中 TRUE 默认父布局的上方
    android:layout_centerInParent 完全居中 TRUE
    android:layout_centerVertical 靠左,上下居中 TRUE

  • 相关阅读:
    Catch That Cow POJ 3278(BFS)
    python的各种推导式(列表推导式、字典推导式、集合推导式)
    贝叶斯神经网络
    浅谈贝叶斯
    置换检验
    Python的基本用法
    字符串和编码
    开启新篇章
    无偏博弈类问题
    PAT1103
  • 原文地址:https://www.cnblogs.com/endv/p/12198529.html
Copyright © 2011-2022 走看看