Android project folder structure analysis

Source: Internet
Author: User

Project structure For example, as seen in the different SDK version number established project project structure is different, as a whole, the high version number added some package structure


1. src

As with Java Projects SRC Store project source code


2. Gen

Self-generated, in which R.java files are self-generated, ADT plug-ins themselves actively according to the file in the Res change R.java file, the res in the corresponding a 16-based address, used in the code to reference the resource files.

3. Bin

Project compiled output folder with APK file in it

4, Res

Storing resource files
A. drawable storage image

(1) drawable-hdpi contains high-resolution images, such as WVGA (480x800), FWVGA (480x854)
(2) drawable-mdpi contains medium-resolution images, such as HVGA (320x480)
(3) drawable-ldpi contains low-resolution images, such as QVGA (240x320)
ldpi:240x320
mdpi:320x480
hdpi:480x800, 480x854
XHDPI: At least 960*720
xxhdpi:1280x720

B. Layout

The layout file of each activity is stored, described in XML file, including the arrangement of each control, color size, etc.

C. Values

The string used to store the project
D. androidmanifest.xml file

The function List of the Anroid project, which is somewhat similar to that of the Java EE Project in Web. XML, requires a servlet,listener, and each activity needs to be registered in this document.

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.