Android Development Layout Simple Introduction

Source: Internet
Author: User
Introduction to Android Development layout

1. Linear Layout LinearLayout

The components in the layout are arranged next to each other, the Android:orientation property controls the arrangement direction, horizontal-horizontal, vertical-vertical

The linear layout does not wrap, and the remaining components are not displayed when the screen is out of range.

2. Table Layout Tablelayout

Inherited from the LinearLayout, its essence is still linearlayout. Manage the number of rows and columns of the table by TableRow. Adding a TableRow is one line.

3. Frame Layout Framelayout

are stacked hierarchically in the upper-left corner of the screen, followed by a control that overrides the previous control. In the framelayout layout, it is meaningless to define the location-related properties of the space.

4. Relative Layout relativelayout

The position of a subassembly within a relative layout container is always determined relative to the sibling component, the parent container.

5, android4.0 new Grid layout GridLayout

Can only be used after android4.0. Similar to the table label in HTML, the entire container is divided into rows x columns meshes, each of which can place a component.

6. Absolute layout absolutelayout

The location of its components is controlled by the developer by its own x-, y-coordinate. This layout is basically out of date.

Android Development Layout Simple Introduction

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.