My Android Learning experience 1

Source: Internet
Author: User

Introduction to the main files of Android

After you create a new Android project file, there will be a src file, the? src file is where we mainly write files. Java, where the main implementation of the logical code, such as the control of the event, in fact, this is the place to write activity

And also? is the res file under the layout file under the. xml file, this file is a layout file, the main implementation of the activity of the layout, such as the interface to arrange the Button,textview and other controls, set the format of the control Ah, layout and then use the above. java File Call (findviewbyi D () method), in fact, the above src file in the. java file can also write the format properties of these controls, but it is best to write the static formatting properties in the layout file, to be used dynamically written in the layout file

What else? Res folder below the values folder, the following Strings.xml file, mainly write some commonly used string string, can be called in the layout file.

The last important thing is the registration file? Androidmanifest.xml file, this is mainly to achieve the registration of activity

What's wrong with looking at criticism?

My Android Learning experience 1

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.