3.1 Android Directory Structure
3.1 Android Directory Structure
Unit Outcome-
1. Explain the relevant analogy the given Directory Structure
• Java folder
These files are used as a controller for controlled UI (Layout file). It gets the data from the Layout file and after
processing that data output will be shown in the UI layout. It works on the backend of an Android application.
• Resources
Resources are the additional files and static content that your code uses, such as bitmaps, layout definitions, user
interface strings, animation instructions, and more.
• Drawable
A Drawable folder contains resource type file (something that can be drawn). Drawables may take a variety of file
like Bitmap (PNG, JPEG), Nine Patch, Vector (XML), Shape, Layers, States, Levels, and Scale.
• Layout
A layout defines the visual structure for a user interface. This folder stores Layout files that are written in XML
language.
• Mipmap
Mipmap folder contains the Image Asset file that can be used in Android Studio application. You can generate the
following icon types like Launcher icons, Action bar and tab icons, and Notification icons.
Files in directory structure
• colors.xml
colors.xml file contains color resources of the Android application. Different color values are identified by a unique
name that can be used in the Android application program.
• strings.xml
The strings.xml file contains string resources of the Android application. The different string value is
identified by a unique name that can be used in the Android application program. This file also stores string
array by using XML language.
• styles.xml
The styles.xml file contains resources of the theme style in the Android application. This file is written in
XML language.