Bootstrap

android之RelativeLayout

 
Constants
intABOVERule 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

转载于:https://www.cnblogs.com/tiankonguse/archive/2012/08/13/2636717.html

;