tesing
Gentle Introduction To Android Studio File Structure
1. AndroidManifest
- It is a declaration file.
- Here only Which activity should start first, that has been declared.
- It declares which permissions the application must have.
- It also declares the permissions that others are required to have in order to interact.
- It declares the minimum level of the Android API.
- It lists the libraries that the application must be linked.
- All the component should declared here.
- The components are activities, services, broadcast receivers, and content providers.
2. Java eg, like hello world program to test and all of your android function are write on this java package file
Hello World
3. Drawable Drawable is something which can be drawn. E.g. layout, vector image (line, circle), font, image and so on.
4. Layout The layout defines the visual structure for your app. Android uses this structure to display the view elements on the screen. The most common are linear, relative and grid layouts but a combination is also possible.
5. minmap The mipmap folders are for placing your app/launcher icons (which are shown on the homescreen) in only. Any other drawable assets you use should be placed in the relevant drawable folders as before.
Itís best practice to place your app icons in mipmap- folders (not the drawable- folders) because they are used at resolutions different from the deviceís current density.
When referencing the mipmap- folders ensure you are using the following reference:
android:icon="@minmap/ic_luncher"
The reason they use a different density is that some launchers actually display the icons larger than they were intended. Because of this, they use the next size up.
6. color.xml The colors.xml is an XML file which is used to store the colors for the resources.
7. Stirng.xml One of the most important as well as widely used values file is the strings.xml due to its applicability in the Android project. Basic function of the strings.xml is to define the strings in one file so that it is easy to use same string in different positions in the android project plus it makes the project looks less messy.
8. Styles.xml Another important file in the values folder is the styles.xmlwhere all the themes of the Android project are defined. The base theme is given by default having the option to customize or make changes to the customized theme as well. Every theme has a parent attribute which defines the base of the theme. There are a lot of options to choose from depending on the need of the Android project.
9. build.gradle(Module App)
- android settings
i. compileSdkVersion
ii. buildToolsVersion
2. defaultConfig and productFlavors
i. manifest properties such as applicationId, minSdkVersion, targetSdkVersion, and test information
3. buildTypes
i. build properties such as debuggable, ProGuard enabling, debug signing, version name suffix and testinformation
4. dependencies
Comments
Post a Comment