Android Development Series (ii) Layout

Source: Internet
Author: User

Master the following important attributes and use them flexibly:

Android: layout_centerInParent center layout

Android: layout_centerVertical vertical center layout

Android: layout_centerHorizontal horizontal center layout

 

Android: layout_alignParentTop occupies the top of the container

Android: layout_alignParentBottom occupies the bottom of the container

Android: layout_alignParentLeft: left in Container

Android: layout_alignParentRight: Right of the container

Android: layout_above is located above the specified View

Android: layout_below is located below the specified View

Android: layout_toRightOf on the right of the specified View

Android: layout_toLeftOf on the left of the specified View

Android: layout_alignTop is consistent with the Top of the specified View.

Note: The preceding settings apply to RelativeLayout,

For LinerLayout, the line is simply arranged from top to bottom or from left to right.

Android: orientation in LinerLayout, if a dimension of a control, such as match_parent, is located in the current position of the control,

The entire container is filled, that is, the space in front of the control is not overwritten, and the control behind the control is not displayed.

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.