A great feature of the application development of the Andorid system is the design of the application's interface through the layout XML file. We write featured applications by referencing and learning from the viewd of Android system resources, and by understanding various layout and UI event handling
1. Application Architecture
- src/Directory: Java original code storage directory
- gen/directory: Automatically generate a table of contents, which is responsible for automatically generating images, text, and layout resources in a class file. The most important file in the directory is R.java, which is automatically generated by the Android development tool. The Android tool will r.java from the XML interface files, icons, constants, synchronizations and new changes you put into the Res directory. It contains the IDs of the various resources
- Res/directory: You can store the various resources that your app uses, such as XML interface files, icons, or constants.
- Res/drawable storage High, medium and low resolution of the picture, the system according to the machine's resolution to each of these folders to find the corresponding picture.
- DRAWABLE-HDPI High resolution WVGA (480*800), FWVGA (480*854)
- DRAWABLE-MDPI Medium Resolution HVGA (320*480)
- DRAWABLE-LDPI Low resolution QVGA (240*320)
- Res/layout to store XML interface files exclusively
- Res/values dedicated to the various constants used by the application
- Andoridmanifest.xml is a feature manifest file that lists the features that the application provides, and in this file you can specify the application usage to the service. In addition, when a new activity is added, it needs to be configured in this file, only when it is configured to call this Acitivy, including four components of the Declaration and authorization and use of authorization also need to be declared in this file, or some of the functions of the system application can not be used.
Chapter II Android Basic application development and analysis