开发者

android.R.layout.simple_list_item_1 - What is this object, I don't get it [duplicate]

This question already has answers here: Closed 11 years ago.

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜