Android-the first Android program, android-android

Source: Internet
Author: User

Android-the first Android program, android-android

  • Directory structure and functions of Android Projects

Directory

Function

Gen

Do not modify automatically generated files

Assets

Resources needed for custom projects, which cannot be identified by the Android platform

Res

Engineering resources, which can be identified by the Android platform and will be automatically generated in the gen directory

Drawable

Resources (images) that can be drawn correspond to different resolutions

Layout

Layout management File

Values

Manage constant values

AndroidManifest. xml

The project list file describes the entire Android application.

  • Activity

Activity is the user interface of the android application. Multiple controls can be placed in an Activity.

Activity can also be understood as the control container.

  • Important attributes

Android: layout_width

Android: layout_height

Fill_parent | wrap_content

Android: layout_weight weight (0 by default)

Android: Unique id used for reference in a program or configuration file

Width and height are attributes that must be included in the control.

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.