android-Basic Layout

Source: Internet
Author: User

android-Basic Layout a linearlayout
Linear layout: Horizontal and vertical
Layout is preferably less than 5 levels

Must be


two framelayout
The layout of a single element is usually displayed, or multiple elements can be
element is less than or equal to 3


three absolutelayout
Properties of the attachment:
android:layout_x= "64DP"
Android:layout_y= "46DP"
It is difficult to use, it is not recommended


Four Relativelayout
Relative layout
Forms commonly used in tables, login interfaces, etc.
Must be


Five Tablayout
Form
It is convenient for each column to
The ID of the column starts from 0
android:stretchcolumns= "Up" control column to fill
android:collapsecolumns= "0,2" control column to zoom out
android:shrinkcolumns= "2" control column wrap Line
Android:layout_column= the position of the column of the "2" control label
Android:layout_span= "2" controls the number of cells that the label occupies, the number of cells starting from 1
Must be


Six Fragment
A multi-task split screen similar to a tablet,
Click on a tab in your phone and open an activity


Seven Include other Layout
Embody the idea of modularization
<include
Android:layout_width= "Wrap_content"
android:layout_height= "Wrap_content"
layout= "@layout/layout_formwidget"/>


Add:
Be good at using the hierarchical analysis tools under the SDK

ADB install c:\***.apk


android-Basic Layout

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.