android之RelativeLayout

 
Constants
int ABOVE Rule that aligns a child's bottom edge with another child's top edge.
将改控件的底部至于给定ID的控件之上
int ALIGN_BASELINE Rule that aligns a child's baseline with another child's baseline.

int ALIGN_BOTTOM Rule that aligns a child's bottom edge with another child's bottom edge.
int ALIGN_LEFT Rule that aligns a child's left edge with another child's left edge.
将改空间的左边缘和给定ID的控件的左边缘对齐
int ALIGN_PARENT_BOTTOM Rule that aligns the child's bottom edge with its RelativeLayout parent's bottom edge.
int ALIGN_PARENT_LEFT Rule that aligns the child's left edge with its RelativeLayout parent's left edge.
int ALIGN_PARENT_RIGHT Rule that aligns the child's right edge with its RelativeLayout parent's right edge.
int ALIGN_PARENT_TOP Rule that aligns the child's top edge with its RelativeLayout parent's top edge.
int ALIGN_RIGHT Rule that aligns a child's right edge with another child's right edge.
int ALIGN_TOP Rule that aligns a child's top edge with another child's top edge.
int BELOW Rule that aligns a child's top edge with another child's bottom edge.
将改控件的底部至于给定ID的控件之下
int CENTER_HORIZONTAL Rule that centers the child horizontally with respect to the bounds of its RelativeLayout parent.
int CENTER_IN_PARENT Rule that centers the child with respect to the bounds of its RelativeLayout parent.
int CENTER_VERTICAL Rule that centers the child vertically with respect to the bounds of its RelativeLayout parent.
int LEFT_OF Rule that aligns a child's right edge with another child's left edge.
将改空间的右边缘和给定ID的控件的左边缘对齐
int RIGHT_OF Rule that aligns a child's left edge with another child's right edge.
将改空间的左边缘和给定ID的控件的右边缘对齐
int TRUE
原文地址:https://www.cnblogs.com/tiankonguse/p/2636717.html