开发者

How dos the setListAdapter(Arrayadaper) works for listView?

I made a listview with 3 columns by overriding the getView() method. I extended the class Arrayadaper for my own class and than used that for setListAdapter(Myclass). But i don't really understand how this works.. There is no for or while here. How does this go through every item in the list? How does setlistadaper and arrayadapter works? Where is the for or while? Int Position is one of the argument in the getview(), bet there is no loop. Can someone explain me please?

Class contenthandler goes also through an xml list? How it is possible without lo开发者_开发问答op?


As i know, there's no loop for you. ListView will check which item should be displayed and then getView by position. In getView you create the item view at position.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜