Common Android RelativeLayout attributes ~
[Plain]
- // Relative to the given ID Control
- Android: layout_above: place the bottom of the control on the control with the given ID;
- Android: layout_below: place the bottom of the control under the control with the given ID;
- Android: layout_toLeftOf align the right edge of the control with the left edge of the control with the given ID;
- Android: layout_toRightOf align the left edge of the control with the right edge of the control with the given ID;
-
- Android: layout_alignBaseline: Align the baseline of the control with the baseline of the given ID;
- Android: layout_alignTop: Align the top edge of the control with the top edge of the given ID;
- Android: layout_alignBottom: Align the bottom edge of the control with the bottom edge of the given ID;
- Android: layout_alignLeft: Align the left edge of the control with the left edge of the given ID;
- Android: layout_alignRight: Align the right edge of the control with the right edge of the given ID;
- // Relative to the parent component
- Android: layout_alignParentTop if it is true, align the top of the control with the top of its parent control;
- Android: layout_alignParentBottom: If this parameter is set to true, the bottom of the control is aligned with the bottom of its parent control;
- Android: layout_alignParentLeft: if it is true, align the left of the control with the left of its parent control;
- Android: layout_alignParentRight: if it is set to true, align the right of the control with the right of its parent control;
- // Center
- Android: layout_centerHorizontal if true, place the control horizontally in the center;
- Android: layout_centerVertical if true, place the control vertically in the center;
- Android: layout_centerInParent if true, place the control in the center of the parent control;
- // Specify the moving Pixel
- Android: layout_marginTop offset value;
- Android: layout_marginBottom offset value;
- Android: layout_marginLeft value of the left offset;
- Android: value of the right offset of layout_marginRight;