Android's Initial exploration of the context class
Source: Internet
Author: User
<span id="Label3"><p>has been learning Android recently, but due to the limited capacity of java, learning to use the development of a lot of difficult, many intricate classes and interface components of the people are very hard, often do not know where to start 、、、、</p><p>Lengthy methods and constants of various names, no experience with any interface programming is really killing the Egg. Always do not shun the relationship between the various classes, there is no good Java code style, wow Ah ah is really a dog. =</p><p>All right, the whining is over, write your own understanding of the context of the Lost.</p><p>First he is an abstract class, a bridge, an interface, he can represent the application of global information, can also represent an activity of Information. Each activity corresponds to a context object that records all the information about the activity and is created Automatically. One of the most widely used examples is that all adapters (including their Own) classes need to pass in the context object as the representative of the activity when creating the object, and then the adapter can populate the interface with the content based on the Delegate. In this case, the context object of the activity is indicated with the this pointer (not all cases can be referred to in this case, of course).</p><p>well, That's All we know about this, 、、、、、、、、 tomorrow, write the Layoutinflater class.</p><p>Android's Initial exploration of the context class</p></span>
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