Android relative layout attributes

Source: Internet
Author: User
RelativeLayout Layout
Android: layout_marginTop = "25dip" // distance from the top to android: gravity = "left" // spatial layout location android: layout_marginLeft = "15dip // left margin // 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 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 alignbaseline; 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 alignleft alignright: if layout_alignParentTop is true, align the top of the control with the top of its parent control; If android: layout_alignParentBottom is true, align the bottom of the control with the bottom of its parent control; android: if layout_alignParentLeft is true, align the left of the control with the left of its parent control; If android: layout_alignParentRight is true, align the right of the control with the right of its parent control; // center android: layout_centerHorizontal if true, place the control in the horizontal center; android: layout_centerVertical if true, place the control in the vertical center; android: layout_centerInParent if true, place the control in the center of the parent control; // specify the offset value on the mobile pixel android: layout_marginTop; the offset value under android: layout_marginBottom; and the left offset value of android: layout_marginLeft; android: value of the right offset of layout_marginRight;
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.