zoukankan      html  css  js  c++  java
  • Android布局文件中的属性含义

    android:layout_below 将该控件的顶部至于给定ID的控件之下
    android:layout_toLeftOf 将该控件的右边缘和给定ID的控件的左边缘对齐
    android:layout_toRightOf 将该控件的左边缘和给定ID的控件的右边缘对齐
    android:layout_alignBottom 将该控件的底部边缘与给定ID控件的底部边缘
    android:layout_alignLeft 将该控件的左边缘与给定ID控件的左边缘对齐
    android:layout_alignRight 将该控件的右边缘与给定ID控件的右边缘对齐
    android:layout_alignTop 将给定控件的顶部边缘与给定ID控件的顶部对齐

    android:layout_alignParentBottom 如果该值为true,则将该控件的底部和父控件的底部对齐
    android:layout_alignParentLeft 如果该值为true,则将该控件的左边与父控件的左边对齐
    android:layout_alignParentRight 如果该值为true,则将该控件的右边与父控件的右边对齐
    android:layout_alignParentTop 如果该值为true,则将空间的顶部与父控件的顶部对齐

    android:layout_centerHorizontal 如果值为真,该控件将被至于水平方向的中央
    android:layout_centerInParent 如果值为真,该控件将被至于父控件水平方向和垂直方向的中央
    android:layout_centerVertical 如果值为真,该控件将被至于垂直方向的中央

    android:layout_marginTop 该控件上部外侧与其他控件的距离
    android:layout_marginBottom 该控件下部外侧与其他控件的距离
    android:layout_marginLeft 该控件左侧与其他控件的距离
    android:layout_marginRight 该控件右侧与其他控件的距离
    android:layout_margin 该控件四周与其他控件的间距

    android:padding 控件内部四周填充距离
    android:paddingLeft 该控件左侧填充距离
    android:paddingRight 该控件右侧填充距离
    android:paddingBottom 该控件顶部填充距离
    android:paddingTop 该控件底部填充距离

  • 相关阅读:
    vue自定义指令
    ZOJ Problem Set–2104 Let the Balloon Rise
    ZOJ Problem Set 3202 Secondprice Auction
    ZOJ Problem Set–1879 Jolly Jumpers
    ZOJ Problem Set–2405 Specialized FourDigit Numbers
    ZOJ Problem Set–1874 Primary Arithmetic
    ZOJ Problem Set–1970 All in All
    ZOJ Problem Set–1828 Fibonacci Numbers
    要怎么样调整状态呢
    ZOJ Problem Set–1951 Goldbach's Conjecture
  • 原文地址:https://www.cnblogs.com/liujicai/p/3290995.html
Copyright © 2011-2022 走看看