Some of the components of Android
The first is view, the translation is the vision, view, that is to see things. It can be a button, a text, a container, or something else.
Activity, translation comes to the event. Here is the concept of user interface, the interface is active, you can do a series of operations.
Fragment, translation comes in small pieces, fragments. Fragment is equivalent to a child window of activity.
Intent, translation comes from intention. Should be understood as a behavior that can broadcast messages, initiate activity, and dial out the phone.
Contentprovider,content is the content, provider is the provider. Apps can share data with other apps as content providers through Conternprovider.
Androidmanifest.xml, this configuration file is similar to Web. Xml. Used to manage the entire application. You can set the minimum version that the app can run, or set permissions, and much more.
Elements of an Android application
| Elements |
Describe |
Whether you must |
| Androidmanifest.xml |
Profile, the Android app hungry description file. You can declare the permissions required by the application, and other applications that grant specific permissions to the service that is used |
Is |
| Src |
folder that contains all the source code for the application |
Is |
| Assets |
folder, does not generate the corresponding tag under the R.java file, the resources stored here will be in the program installation package when the package is run. |
Whether |
| Res |
Folders, various resource files. Contains the following folders |
Is |
| Drawable |
folder that contains the image used, or the image's description file |
|
| Animator |
folder, an XML description file that contains animations |
|
| Layout |
folder that contains the application's layout file |
|
| Menu |
folder that contains the XML description file for the menu in the application |
|
| Values |
folder that contains additional resources used by the application. Default is dimens.xml size profile, Strings.xml string profile, Styles.xml style profile |
|
| Xml |
folder that contains other XML files used by the application |
|
| Raw |
Folder containing additional data that the application must have |
|