Android: Layout

Source: Internet
Author: User

This article summarizes the knowledge points used in the Android layout

Android five major layouts:

LinearLayout Linear layout
Relativelayout Relative layout
Tablelayout Table Layout
Framelayout Single Frame layout
Absolutelayout Absolute Layout

and a page can be used in a variety of layouts

Include: Shared layout

< include   Layout = "@layout/Another XML name" />

Layout Common tools:

Anti-compilation Tool

Hierarchyviewer

Common Properties for Android controls:

Http://www.cnblogs.com/bavariama/archive/2013/02/22/2922024.html

outer margin Inner margin
Layout_margin Outer margin Padding Inner margin
Layout_margintop Top margin Paddingtop Top padding
Layout_marginbottom Lower margin Paddingbottom Lower inner margin
Layout_marginleft Left margin Paddingleft Left margin
Layout_marginright Right margin Paddingright Right inner margin

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.