Android Studio Visual Schematic analysis

Source: Internet
Author: User

as there are altogether three views. Let's analyze the role of each view separately..A. Project view. (The directory/file for white fonts is not a concern)
The link in the picture Gralde Description: Http://stormzhang.com/devtools/2014/12/18/android-studio-tutorial4/GIT/github use:/http Www.worldhello.net/gotgithub/.gitignore file Description: Http://www.html-js.com/article/2030Android's module recommends such a write. gitignore file
/build*.iml
The Android project. Gitignore file recommended this write
# Built application files *.apk *.ap_  # Files for the Dalvik VM *.dex  # Java class files *.class  # Generated files bin/ gen/  # Gradle files .gradle/ build/  < Span class= "pun" style= "Color:rgb (147,161,161)" >#   Span class= "Typ" style= "Color:teal" >local  configuration file   ( sdk Path    etc    local.properties  # Proguard folder generated by Eclipse proguard/  # Log Files *.log 


Two packages views

The most important difference between this view and project is that it hides the configuration file, the properties file, and the system's own directory. Just show the current module list and moduleThe following directory, file.
three Android view.The Andrid view is a new version of as a newly launched view. A lot of people from the development of the ecplise transfer, accustomed to the project view. Using the Android view. It is found that there are many advantages to it.

Because most of the directories, the files are labeled in detail in the first view. It's not in one by one. You can see that the first level directory under Android view is divided into two areas, one is the module list area, and the other is the Gradle script area.
ModuleDirectory under three sub-directories, respectively, corresponding to the mainfests file, Java source code, RES Resource directory. In the figure, there are multiple directories and filenames that are the same. But there is an identity in the back. For example, Diesns.xml file has two, one behind (W820DP) It means that the Dimens value under this file will be referenced at least 820DP of the available width of the phone. Please refer to the link: http://blog.csdn.net/siyehuazhilian/article/details/ 41891483 We are more concerned about how such files are built. As you've already said, all views of project are real directories. And in Android view, a large directory is not present, is automatically merged by the Android View together, easy to understand and decorate. eg :
Switch to Project view,is a dimens file in this directory
Android view automatically merges them together, indicating that these files work the same way, except that they refer to files in different directories because of different devices.

GradleThere are multiple Gradle files and properties files under the script directory. Look at the following hints, from top to bottom: Project space for the Gradle profile, the first module, and the second module configuration file. Gralde properties file, setting file, and the local SDK path properties file. These files are described in detail in project. There is no explanation here.
the biggest benefit of adnroid view is to remove some files and directories that we don't care about. (Configuration, properties files, etc.) and some resource files, source files are clearly merged together. hiding some auto-generated files and directories (such as r files, etc.) allows us to manage the whole project/module more methods.

Android Studio View resolution

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.