Android layout: absolutelayout and framelayout

Source: Internet
Author: User

Android layout: absolutelayout and framelayout

1. absolutelayout

The layout of the XY precise coordinates of the stator control. The absolute layout lacks flexibility and is more difficult to maintain than other la s without absolute positioning. Because Android devices are diverse and have different resolutions, there are often many differences in the absolute layout of different models. Therefore, it is generally not recommended to use absolute layout to layout the UI. In the control, use the Android: layout_x and Android: layout_y attributes to specify the horizontal and vertical coordinates of the control.

2. framelayout

Frame layout is the simplest layout method. All views added to this layout are displayed in a stacked manner. The first added component is placed at the bottom layer, the view added to the framework is displayed at the top, and the lower-level control is overwritten.

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.