Android(安卓)RelativeLayout(相对布局)
16lz
2021-12-04
画android页面的时候经常画出来的结果不是自己想要的
现在对RalativeLayout的一些属性做下记录
第一类:属性值为true或false
*android:layout_centerHrizontal
*android:layout_centerVertical
*android:layout_centerInparent
*android:layout_alignParentBottom
*android:layout_alignParentLeft
*android:layout_alignParentRight
*android:layout_alignParentTop
*android:layout_alignWithParentIfMissing
第二类:属性值必须为id的引用名“@id/id-name”
*android:layout_below
*android:layout_above
*android:layout_toLeftOf
*android:layout_toRightOf
*android:layout_alignTop
第三类:属性值为具体的像素值,如30dip,40px
*android:layout_marginBottom
*android:layout_marginLeft
*android:layout_marginRight
*android:layout_marginTop
更多相关文章
- Android相对布局属性全集
- Android之EditText
- Layout属性介绍
- android:windowSoftInputMode属性详解
- Android_相对布局的相关属性RalativeLayout
- android 设置中添加首选项 通过Intent调第三方应用
- Android开发中 ListView 不能不说的几个属性
- Android(安卓)Layout的属性
- android 布局属性