Introduction to the Android Engineering directory structure

Source: Internet
Author: User

In general, the directory structure of an Android project is as shown.

1:src

Java source code is placed in this area.

2:gen

Some Java code generated automatically by the compiler

3:android 4.2

Android Platform (version 4.2 for this project)

4:android dependencies

This directory appears in later versions of ADT16 and is a new reference for ADT third-party libraries, and when we need to refer to third-party libraries, just

The library is copied to the Libs folder, and ADT automatically completes a reference to the library (as in this example Android-support-v4.jar)

5:bin

This directory is the compiled file and some intermediate files in the directory, ADT first compiled the project into an Android Java Virtual machine (Dalvik virtual machines)

File Classes.dex. Finally, package the Classes.dex as an APK package. (APK is the installation package that the Android platform is born on).

6:libs

As described in 4, this directory is used to store third-party libraries, which are generated by default when you create a new project, which is created manually if you don't have one.

7:res

The resource files in the project are stored and R.java are automatically recorded when resources are added to the directory. The following subdirectories are commonly found in the Res directory

DRAWABLE-HDPI, drawable-mdpi, drawable-xhdpi: Storing picture files (PNG, JPG), three subdirectories save High, medium, and low quality pictures respectively

Layout: Screen layout directory, layout directory, the default layouts file is Activity_main.xml, you can put different layout structures and controls within the file to meet the needs of the project interface, you can also create a new layout file.

Menu: Holds the XML file that defines the Application menu resource.

Values, Values-v11, VALUES-V14: Stores XML files that define multiple types of resources.

from:http://blog.csdn.net/saloon_yuan/article/details/8473258

Introduction to the Android Engineering directory structure

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.