Relative alignment of Android relative to layout

Source: Internet
Author: User

  1. Relativelayout (relative layout)
  2. Android:layout_above the control to the bottom of the control with the given ID android:layout_below the top of the control to the control of the given ID android:layout_toleftof Aligns the right edge of the control with the left edge of the control of the given ID android:layout_torightof the left edge of the control and the right of the given ID of the control
  3. Android:layout_above the bottom of the control to the control of the given ID
  4. Android:layout_below the top of the control to the control of the given ID
  5. Android:layout_toleftof aligns the right edge of the control with the left edge of the control for the given ID
  6. Android:layout_torightof aligns the left edge of the control with the right edge of the control for the given ID
  7. Android:layout_alignbaseline the baseline of the control's baseline and the given ID of the control
  8. Android:layout_alignbottom the bottom edge of the control with the bottom edge of the given ID control
  9. Android:layout_alignleft aligns the left edge of the control with the left edge of the given ID control
  10. Android:layout_alignright aligns the right edge of the control with the right edge of the given ID control
  11. Android:layout_aligntop aligns the top edge of the given control with the top of the given ID control
  12. Android:alignparentbottom if the value is true, align the bottom of the control with the bottom of the parent control
  13. Android:layout_alignparentleft if the value is true, align the left side of the control with the left side of the parent control
  14. Android:layout_alignparentright if the value is true, align the right side of the control with the right side of the parent control
  15. Android:layout_alignparenttop if the value is true, aligns the top of the space with the top of the parent control
  16. Android:layout_centerhorizontal if the value is true, the control will be in the horizontal direction of the central
  17. Android:layout_centerinparent if the value is true, the control will be centered on the horizontal and vertical direction of the parent control
  18. Android:layout_centervertical if the value is true, the control will be in the vertical direction of the central

Relative alignment of Android relative to layout

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.