开发者

Android sectioned listview with complex view

I want to use Jeff S. example for sectioned 开发者_C百科listview with headers.

But I want to use more complex item view.

Can you suggest me which approach is best to do this. I found two ways

  1. Put information in Map<String,String> item = new HashMap<String,String>(); using item.put() - example here

2.Using getView on ArrayAdapter (without overriding other methods ) - example here

Which way is better?

Thanks


Depending on the complexity of your listitems it might be better to write your own adapter by extending BaseAdapter. This link has a nice tutorial on how to write your own adapters.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜