The main structure and detailed explanation of Android project

Source: Internet
Author: User

Today we mainly analyze the folder structure of the project

This is a common folder structure for the entire project, and below I will describe the meaning of each folder represented:

SRC —————-The Main program code is edited under this file

Gen ———— – some R files generated by the system at compile time. For example, some definitions in XML (<string name= "App_name" ></string>) These IDs will be generated here

Assets ———— – for storing external resource files used in applications, programs can read and write files in the directory through I/O streams, and files stored in this directory will be packaged into the release package.

Bin ———— – After the project is finished running, there will be some compiled files temporarily generated by the product with the APK build package.

Libs ———— – This is very familiar and is a third-party jar package.

Res ————-Some of the images and page XML used in the project.

DRAWABLE-HDPI, drawable-mdpi, drawable-xhdpi and other folders to store picture files, depending on the size of the picture there are different locations.

layout-– the XML file that primarily stores pages

Menu ——-The folder at a glance to know that it is the menus, the XML file that we created when we clicked on the menu on the phone

The values ——-store some of the strings that are commonly used in your app.

androidmanifest.xml--System main entry file.

A project is roughly the usual folder, but some folders are hidden and are not created when the project was created, such as raw,drawable.

The introduction of the project today first to sue a mess, what do not understand the welcome in the following message, I will help you solve.

The main structure and detailed explanation of Android project

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.