android.R.layout.simple_list_item_1 - What is this object, I don't get it [duplicate]
Possible Duplicate:
What is “android.R.layout.simple_list_item_1”?
I see this object named and referenced in many code samples I see. Specifically, I have seen it in the params for the new ArrayAdapter constructor.
The problem is, in every single example, I don't see an object deceleration for this anywhere in any xml layout or code anywhere. Either every single example is missing it accidentally, or I am just missing something here. I'm also including books in here too. Specifically, "Professional Android 2 Application Development" by Wrox press. Shame on this book for not explaining what this means, however has it used everywhere.
Could someone explain to me what android.R.layout.simple_list_item_1 typically 开发者_运维问答would mean. Sorry, I just don't get it. Is it an object? If so, what?
BTW, I'm a senior developer with 11 years in .NET. This is my first time using Eclipse, Java, and Android.
simple_list_item_1 and simple_list_item are List Item layouts built into the platform to be used with ListAdapter. Otherwise you define your own ListAdapter layout.
精彩评论