"Android Development-3" Understanding project document structure and role

Source: Internet
Author: User

The understanding of a thing, we are generally the first perceptual understanding, and then the rational understanding. Understanding the structure of the Android project, we can have a whole perceptual knowledge of a project, as we keep in touch with the practice summary, we will get a rational understanding.


first item Hello's file structure is as follows :



Ii. description of the structure effect


The activity file and function code are stored under the 1.src->com.wyz.hello package, and the activity file can be understood as the file source of the user interface UI;

For example, the above mainactivity code is to set the interface to display. A simpler understanding is that SRC, as the name implies, is the meaning of storing the source code, so you will be writing in the future here.

2.gen (full name: Generated java files, which is the generated Java file), the files in this directory are automatically generated by the compiler, in development generally do not have to ignore it. Just understand what the r.java under it can do. This r.java is a static class that contains many, functions that define the index of all resources for the project, and each resource has a unique ID.


3.Android 4.2.2 Needless to say, it is the Android SDK library required for programming


4.Android Private Libraries The name is a bit personal, the folder contains a third-party jar package, which is unique to the latest version of ADT. It normalizes third-party jar packages to this folder.


5.Android Dependencies, this is the ADT16 version, the third-party library new reference mode;

When we need to reference a third-party library, just copy the library to the Libs folder, and ADT will automatically complete a reference to that library


6.assets, this place mainly saves resource files, code files, etc., but does not generate resource index information in R.java


7.bin and proguard.cfg, this place is a compiled post-generated file


8.libs, as described in 5, this directory is used to store third-party libraries, (when the new project, the default will generate the directory, if not manually created).


9.res
drawable-*: corresponding to a different resolution of the picture, the role of the image to adapt to different phone resolution

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: Defines write constants inside, which are key-value pairs in XML format

values-*: An XML file that contains resources that define a variety of different device types.


10.androidmanifest.xml, set the program's components, permissions, application name, title name, and other information

Before Android launches an application component, it must know which components are present, so developers must declare the components that appear in the application in the Androidmanifest.xml file as part of the development process.


11.project.properties, records the properties of the project environment, which is generated automatically by the compiler, without leaving it






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.