Relativelayout attribute, relativelayout
// 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 places the bottom of the control under the control with the given ID; android: layout_toLeftOf alignment the right edge of the control and the left edge of the control with the given ID; android: layout_toRightOf alignment the left edge of the control with the right edge of the control with the given ID; android: layout_alignBaseline alignbaseline aligneline of the control and baseline of the given ID; android: layout_alignTop aligntop; android: layout_alignBottom alignbottom alignleft: layout_alignRight alignright: Align the right edge of the control with the right edge of the given ID; // align the top of the control with the top of its parent control if it is set to true relative to the parent component android: layout_alignParentTop; android: layout_alignParentBottom: true: Align the bottom of the control with the bottom of its parent control; android: layout_alignParentLeft: true: Align the left of the control with the left of its parent control; android: if layout_alignParentRight is true, align the right of the control with the right of its parent control; // center android: layout_centerHorizontal if true, align the control horizontally. android: if layout_centerVertical is true, place the control in the vertical center; If android: layout_centerInParent is true, place the control in the center of the parent control; // specify the mobile pixel android: layout_marginTop offset value; android: layout_marginBottom offset value; android: layout_marginLeft offset value; android: layout_marginRight offset value;