Application Resources Definition >An Application is composed of:code and resources. DEF.Resources are everything that is not code_(including: XML layout files,language packs,images,audio/video files, etc) Eapp V▣manifests AndroidManifest.xml y▣java com.example.toml.myapplication com.example.toml.myapplication (androidTest) vres drawable P▣layout p▣menu p▣mipmap >▣values Gradle Scripts
Application Resources Definition ➢ An Application is composed of: code and resources. DEF. Resources are everything that is not code (including: XML layout files, language packs, images, audio/video files, etc)
Caapp y□manifests AndroidManifest.xml T口jawa com.example.toml.myapplication Default Resources com.example.toml.myapplication (androidTest) drawable ▣layout 回menu ◆回mipmap values y⑤Gradle Scripts Resources are defined in the res/folder of the project. MyProject MyActivity.java (Source Code Java) res layout main.xml (Application XML Layout) values strings.xml (Application Labels) drawable-> icon.png (Application Icons)
Default Resources • Resources are defined in the res/ folder of the project. MyProject src res layout values drawable MyActivity.java main.xml strings.xml icon.png (Source Code Java) (Application XML Layout) (Application Labels) (Application Icons) 17
File Structure ·res: YEapp y▣manifests o Contain all application resources AndroidManifest.xml y□java o Include most of the following com.example.toml.myapplication directories: com.example.toml.myapplication(androidTest) V□res 。drawable-for images ▣drawable p▣layout drawable resource types like menu mipmap BMP,JPG,9-patch,etc. ▣values Gradle Scripts layout-XML files compiled into screen objects/views. menu-XML files defining application menus values-XML files containing string values.Let's see how its used mipmap-Place to put the launcher icons 18
File Structure • res: o Contain all application resources o Include most of the following directories: ▪ drawable - for images, drawable resource types like BMP,JPG, 9-patch, etc. ▪ layout - XML files compiled into screen objects/views. 18 ▪ menu - XML files defining application menus. ▪ values - XML files containing string values. Let's see how its used ▪ mipmap – Place to put the launcher icons
File Structure ·res: Eapp ☐manifests o raw-Same as assets,except AndroidManifest.xml T▣java it can be accessed via R file. com.example.toml.myapplication com.example.toml.myapplication(androidTest) (not created by default) Vres ▣drawable o anim-for xml files that are ▣layout p▣menu compiled into Animation P▣mipmap p回values Gradle Scripts objects. o color-for xml files that describe colors. o xml-Other xml files,eg.PreferenceScreen,etc. http://developer.android.com/guide/topics/resources/available-resources.html 19
File Structure • res: o raw - Same as assets, except it can be accessed via R file. (not created by default) o anim - for xml files that are compiled into Animation objects. 19 o color - for xml files that describe colors. o xml - Other xml files, eg. PreferenceScreen, etc. http://developer.android.com/guide/topics/resources/available-resources.html
File Structure AndroidManifest.xml: app ☐manifests o Every application must have AndroidManifest.xml y▣java an AndroidManifest.xml file com.example.toml.myapplication com.example.toml.myapplication (androidTest) (with precisely that name)in V□res drawable its root directory p▣layout p▣menu o This file manages icons, ▣mipmap p▣values labels,permissions,libraries, Gradle Scripts intent filters and many other configuration parameters related to application http://developer.android.com/guide/topics/manifest/manifest-intro.html 20
File Structure • AndroidManifest.xml: o Every application must have an AndroidManifest.xml file (with precisely that name) in its root directory o This file manages icons, labels, permissions, libraries, intent filters and many other configuration parameters related to application 20 http://developer.android.com/guide/topics/manifest/manifest-intro.html