(Android practice) How to Adapt relative layout of interface elements without Overlap

Source: Internet
Author: User

In the RelativeLayout layout of android, how does one make the screen adaptive and not overlap with each other?

Generally, the interface layout can be divided into two directions according to business requirements.

Horizontal:
In the order of adding sub-elements on the interface, add the following elements first, and then add the preceding elements.
Attribute values set for the following elements: aligned to the bottom of the parent
Set height
Attribute set by the above element: alignment to the top of the following element


Vertical:
Add the elements on the right of the interface first, and add the elements on the left

Note:
This is related to the drawing rules of the UI 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.