- Directory structure and function of Android project
Directory |
Function |
Gen |
Automatically generated files, do not modify |
Assets |
Customization of the resources needed in the project, the Android platform does not recognize |
Res |
Engineering resources, the Android platform is recognized, and IDs are automatically generated in the Gen directory |
Drawable |
Drawing of resources (Pictures), corresponding to different resolutions |
Layout |
Layout Management Files |
Values |
Managing constant values |
Androidmanifest.xml |
A project manifest file that describes the entire Android application. |
Activity is the user interface for Android applications. A lot of controls can be placed in an activity.
Activity can also be understood as a container for controls.
Android:layout_width width
Android:layout_height height
fill_parent | Wrap_content
Android:layout_weight weight (default = 0)
Android:id Unique identification used to reference in a program or configuration file
The width and height are the properties that the control must contain.
Android-First Android program