The previous article describes how to create a project, which will show how the created project presents itself to the developer, introducing the overall layout of the Android Studio development environment and letting you know the location and functionality of each module.
-
First look at the newly created Project interface, in addition to the menu bar, toolbars, etc., there is nothing to edit the interface
-
All project files can be opened through the project's file browser, so the file manager is very important throughout the development process.
One of the most used is the app, the rest is the software automatically execute or generate related files;
External libraries is used to save the class library of an external import, which can be called when used.
-
The resources and configuration files required for project creation are included under the app item:
First open layout, in src-"main-" res-"layout, this is the Android app interface design file, all the interface can be generated by the XML file here
-
Double-click on the XML file to open the design interface, about the layout of the specific design later, here is only how to open layout.
Steps to read
-
The project's menu design is defined and designed in the XML file under menu items.
-
String files are also important files in the project, and many string data are used in the app development process. It is recommended to strings.xml in the definition of the later call, so that in the Chinese or converted to other languages, as long as the backup strings.xml files, and then replaced with Chinese or other text can be. In fact, this is the way the software of other countries becomes Chinese.
-
The design of the software icon is also very important, this is the purpose of the UI design, all the picture files should be saved under the Drawable-xxxx file
Steps to read
-
Another important document is Androidmanifest.xml, which defines the package name of the project, the title of the project, the theme, the icon and all the active items, the settings of the various access rights, and so on.
-
Next is the most important part of the development of Android, the active program of the writing part, all the app contains at least one activity, which is used to implement the functions required by the app, to complete the function code to write, here can call other files defined in the interface to access the resources, the receiver or generator read and write, etc.
-
Finally, the R file, r file under the App->build->source->r->debug under the second folder, to store all the activity, layout, control and other resources definition, which is automatically generated by the software, No modification or modification is required, and resources are generally accessed through r.id.xxx during programming.
END
Precautions