● · ● Directory:
A1 ............ Android Directory Overview
ANATOMY OF AN ANDROID APPLICATION
Use the "Visualization" method to add a String
AndroidManifest. xml
A2 ............ Android development skills
A3 ............ Create a project for Android
A4 ............ Android console display
A5 ............ Android text message instance
Android directory introduction:
- Src:
Xx. java: source file of the program.
- Gen:
R. java: automatically generated and cannot be modified at will.
- Assets:
The file in does not generate an id in R. java.
- Res:
All the files in R. java generate a unique id, which can be used to access the files.
Drawable-xhdpi: The resolution is the highest, and the image displayed is the smallest, but it looks clear!
Drawable-hdpi: Second.
Drawable-mdpi: Intermediate.
Drawable-ldpi: The minimum resolution, the maximum image displayed, but not clear.
The location of the picture, divided into high, low and different image resolution.
Placing images in different folders has different resolutions!
Layout:
Xx. xml: Layout file. Each Activity corresponds to a layout file.
Values:
String. xml: contains some field values for internationalization of the software.
<String-array> A string array can be written.
- AndroidManifest. xml:
Configure the entire application, including application, activity, icon, tag, and license.
When creating an activity, you must register it in the file. Otherwise, the title of the activity cannot be displayed. The title of the activity must be defined in this file.
See Beginning Android 4 Application Development Page30.