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
- Put information in
Map<String,String> item = new HashMap<String,String>();
usingitem.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.
精彩评论