Android Learning Notes (iii)

Source: Internet
Author: User

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

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.