fig. Anatomy of android
from above fig we can understand that main folder is App.
App :- Contains all the files . like manifest, java , res and gradle
Manifest :- Every android project must contain AdroidManifest.xml file , this file contains all the required and important information of our android application like android build tool, android operating system and google play.
Resource :- To create good android application there are many more items are available , apart from coding there soo many other resources which we need to take care like static content that our coding uses, such as bitmaps, colors, layout definition , user interface strings, animation instruction and many more. This resources are maintained separately in sub folders like below,
Drawable :- Image files like .png, .jpg, .gif or XML files that are compiled into bitmaps, state lists, shapes, animation drawable. They are saved in res/drawable/ and accessed from the R.drawable class.
Layout :- Xml files that define a user interface layout. They are saved in res/layout/ and accessed from the R.layout class.
Mipmap :- This folder contains all our App/ Launcher icons .
Values :-Xml files that contain simple values, such as strings, integers, and colors.
Raw :- In this folder we can add assets files like music file, database files or text files.
Menu :- XML files that define application menus, such as an Options Menu, Context Menu, or Sub Menu. They are saved in res/menu/ and accessed from the R.menu class.
0 Comments