Android study note 07: Framework layout framelayout

Source: Internet
Author: User

The framework layout is to organize controls in AndroidProgramIs one of the simplest layout types in the user interface.

The child view in the frame layout is always drawn to the upper left corner relative to the screen. All views added to this layout are displayed in a stacked manner. The first view added to the Framework layout is displayed at the bottom layer, and the last view is placed at the top layer. The view on the top layer overwrites the view on the next layer. Therefore, the Framework layout is similar to the STACK layout.

In the Framework layout, common attributes include the following:

Android: Top: place the view to the top of the screen

Android: buttom puts the view at the low end of the screen

Android: Left: place the view to the left of the screen

Android: Right: place the view to the right of the screen.

Android: center_vertical displays the view vertically in the center

Android: center_horizontal

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.