Use of the relative layout of Android)

Source: Internet
Author: User

Android: layout_above = "@ ID/label": place the bottom of the control above the given control

Android: layout_below = "@ ID/label" place the top of the control under the given control

Android: layout_toleftof = "@ ID/label" align the right edge of the control with the left edge of the control with the given ID

Android: layout_torightof = "@ ID/label" align the left of the control with the right edge of the control with the given ID

Android: layout_alignbaseline = "@ ID/" align the baseline of this control with the baseline of the control with the given ID

Android: layout_alignleft = "@ ID/" align the left edge of the control with the given ID

Android: layout_aligntop = "@ ID/" align the top edge of the control with the given ID

Android: layout_alignright = "@ ID/" align the right edge of the control with the specified ID

Android: layout_alignbottom = "@ ID/" align the bottom edge of the control with the specified ID

Android: layout_alignparentleft = "true" if the value is true, the current control is aligned with the left edge of its parent control.

Android: layout_alignparenttop = "true" if the value is true, the current control is aligned with the top of its parent control.

Android: layout_alignparentright = "true" if the value is true, the current control is aligned with the right of its parent control.

Android: layout_alignparentbottom = "true" if the value is true, the current control is aligned with the bottom of its parent control.

Android: layout_centerinparent = "true" if "true", the current control is centered horizontally and vertically by its parent control.

Android: layout_centerhorizontal = "true" if "true", the current control is centered in the vertical direction of its parent control.

Android: layout_centervertical = "true" if "true", the current control is centered in the horizontal direction of its parent control.

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.