Android Studio view parsing, androidstudio

Source: Internet
Author: User

Android Studio view parsing, androidstudio
AS has three views. We will analyze the functions of each view separately. 1. Project view. (The directory/file in the white font is not followed)
The link Gralde in the image is described as follows:

/build*.iml
This is recommended for Android projects. gitignore files.
# Built application files  *.apk  *.ap_    # Files for the Dalvik VM  *.dex    # Java class files  *.class    # Generated files  bin/  gen/    # Gradle files  .gradle/  build/    # Local configuration file (sdk path, etc)  local.properties    # Proguard folder generated by Eclipse  proguard/    # Log Files  *.log 


2. Packages View

The biggest difference between this view and the Project is that the configuration file is hidden. The attribute file and the system's own directory only display the current Module list and the directory under the Module, the file.
Three Android views. the Andrid view is a new view pushed out by the new version of. many people transfer data from Ecplise development and get used to the Project view. the Android view is used. I found that it has many advantages.

Most directories and files are detailed in the first view. this is not a one-by-one annotation. the level-1 directory in the Android view is divided into two areas: the Module list area and the Gradle script area.
ModuleThe directory contains three subdirectories, corresponding to the mainfests file, java source code, and res Resource Directory. as shown in the figure, multiple directories and file names are the same. however, it is followed by an identifier. for example, diesns. there are two xml files, one with (w820dp) meaning that The dimens value in the file will be referenced only when the available width of the mobile phone is at least DP. for details, refer to the links: Workshop:
Switch to the Project view, which is a dimens file under this directory.
The Android view automatically merges these files together, indicating that these files have the same effect, but the files under different directories will be referenced due to different devices.

GradleThe script directory contains multiple Gradle files and attribute files. see the following prompts: The gradle configuration file of the project, the first module and the second module configuration file. gralde attribute file, setting file, and local SDK path attribute file. these files are described in detail in the Project. I will not explain it here.
The biggest advantage of the Adnroid view is to remove some files and directories that we don't care about (configuration, attribute files, etc.) and merge some resource files and source files clearly. Hiding some automatically generated files and directories (such as R files) allows us to manage the entire project/module more efficiently.

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.