android之RelativeLayout

来源:互联网 发布:html css js 源码示例 编辑:程序博客网 时间:2024/06/09 15:35
 ConstantsintABOVERule that aligns a child's bottom edge with another child's top edge.
将改控件的底部至于给定ID的控件之上intALIGN_BASELINERule that aligns a child's baseline with another child's baseline.

intALIGN_BOTTOMRule that aligns a child's bottom edge with another child's bottom edge.intALIGN_LEFTRule that aligns a child's left edge with another child's left edge.
将改空间的左边缘和给定ID的控件的左边缘对齐
intALIGN_PARENT_BOTTOMRule that aligns the child's bottom edge with its RelativeLayout parent's bottom edge.intALIGN_PARENT_LEFTRule that aligns the child's left edge with its RelativeLayout parent's left edge.intALIGN_PARENT_RIGHTRule that aligns the child's right edge with its RelativeLayout parent's right edge.intALIGN_PARENT_TOPRule that aligns the child's top edge with its RelativeLayout parent's top edge.intALIGN_RIGHTRule that aligns a child's right edge with another child's right edge.intALIGN_TOPRule that aligns a child's top edge with another child's top edge.intBELOWRule that aligns a child's top edge with another child's bottom edge.
将改控件的底部至于给定ID的控件之下
intCENTER_HORIZONTALRule that centers the child horizontally with respect to the bounds of its RelativeLayout parent.intCENTER_IN_PARENTRule that centers the child with respect to the bounds of its RelativeLayout parent.intCENTER_VERTICALRule that centers the child vertically with respect to the bounds of its RelativeLayout parent.intLEFT_OFRule that aligns a child's right edge with another child's left edge.
将改空间的右边缘和给定ID的控件的左边缘对齐intRIGHT_OFRule that aligns a child's left edge with another child's right edge.
将改空间的左边缘和给定ID的控件的右边缘对齐
intTRUE
0 0
原创粉丝点击