Android study note 07: Framework layout FrameLayout

Source: Internet
Author: User

Frame layout is one of the simplest layout types to organize controls on the Android 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.