First day of basic Android Learning

Source: Internet
Author: User

Today is the first day to officially start learning Android. A month ago, after setting up the environment and running Hello world, I never paid much attention to it. I chose the book "android SDK development example book 2". Today I will introduce chapter 3 and 23ProgramAfter I ran it all over, I felt that it was quite good to get started with the example. After all, it was not very difficult to understand the basics of Java, and the simulator was too slow for the only disturbing thing, should I upgrade my configuration ~~.

Let's talk about what we 've learned today and master the basic architecture of Android applications: the src directory is of course a Java class (today we mainly master activity ), the res directory stores resource files (image resources + various configuration files). At present, asserts is not clear about what it is, Khan! What is interesting is that the layout of Android is fully implemented using XML (visual editing is supported, but it is not very convenient). Components in the program that use ID to obtain responses (today they all use R. layout. [ID] to obtain, there must be other ways ). In addition to layout, the string constants used in the program are also written to the XML file under the values directory. This design is certainly more flexible than hard-code, but it also adds development complexity, the benefits are not very obvious at present (don't try it out ).

Written for one dayCodeIn the evening, you should take a look at the basics, which is the most lacking in the book "example book 2". Because there are no book resources around you (the summer library is closed, 555 ), decided to read the official documents on the http://developer.android.com, after all this is the first piece of information, the surprise found that the website was unblocked, haha, this dare to be good. The "Application Fundamentals" Translated by myself is attached. please correct me if the translation is not in place because it is still a newbie.

Http://developer.android.com/guide/topics/fundamentals.html

Http://www.cnblogs.com/codingmyworld/archive/2011/07/17/2108460.html

 

Related Article

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.