Android Project Structure view
Android Project View:
To see the actual file structure of the project including all files hidden from the Android view, select Project from the dropdown at the top of the Project window. When you select Project view, you can see a lot more files and directories. The most important of which are the following:
1.Android Manifest File:
AndroidManifest.xml is one of the most important file in the Android project structure.It contains information of the package, including components of the application such as activities, services, broadcast receivers, content providers etc.It performs the following Digrame Permission on Device
2.Java:
The java folder contains the Java source code files of the application organized into packages. We can have more than one package in the Android application. Its always a good practice to break the source code of the application into different packages based on its core functionality. All the source files of the Activities, Services etc. go into this folder. the following Digrame3.res:
Res folder is where all the external resources for the application such as images, layout XML files, strings, animations, audio files etc. are stored. follows Digramea.Drawable:
This folder contains the bitmap file to be used in the program. There are different folders to store drawables. They are drawable-ldpi, drawable-mdpi, drawable-hdpi,drawable-xdpi etc. The folders are to provide alternative image resources to specific screen configurations. Ldpi, mdpi & hdpi stands for low density, medium density & high density screens respectively. The resources for each screen resolutions are stored in respective folders and the android system will choose it according to the pixel density of the deviceb.Layout:
It contains XML files that define the User Interface of the application & Get The Design Android Application.c.Menu:
XML files that define menus for the application goes into this folder
d.Mipmap:
The mipmap folders is used for placing the app icons only. Any other drawable assets should be placed in the relevant drawable folders as before.e.Values
: XML files that define simple values such as strings, arrays, integers, dimensions, colors, styles etc. are placed in this folderf.String:
A string resource provides text strings for your application with optional text styling and formatting. There are three types of resources that can provide your application with strings:SYNTAX:
< xml version="1.0" encoding="utf-8"?> < resources gt; < string < string name="hello" > </resources >4.Gradle Scripts:
This Digrame Gradle scripts are used to automate tasks.For the most part, Android Studio performs application builds in the background without any intervention from the developer. This build process is handled using the Gradle system, an automated build toolkit designed to allow the ways in which projects are built to be configured and managed through a set of build configuration files.It uses a language called groovy.5.Project Module(app)
This is the actual project folder where the application code resides. The application folder has following sub directories build : This has all the complete output of the make process i.e. classes.dex, compiled classes and resources, etc.In the Android Studio GUI, only a few folders are shown. The important part is that the R.java is found here under build/generated/source/r/…/R.java libs : This is a commonly seen folder in eclipse and android studio, which optionally can hold the libraries or .jar files src : The src folder can have both application code and android unit test script. You will find two folders named “androidTest” and “main” correspond to src folder. The main folder contains two subfolders java and res. The java folder contains all the java codes and res contains drawables, layouts etc.
<<PREVIEW>>
<<NEXT>>
No comments:
Post a Comment