开发者

populate an expandableListView with arrayLists

Can anyone tell me any good links on 开发者_开发知识库how to do this? I've looked through a good 15-20 links and none have really explained anything. I just want to dynamically populate an ExpandableListView with ArrayLists or if theres another way... I'd love to know.

PLEASE HELP :(!


I'm not sure an ArrayList is the right data structure to use for an ExpandableListView -- but if you mean a ArrayList of Maps that would be more appropriate. You could do that with the SimpleExpandableListAdapter class it looks like. Then use ExpandableListView.setAdapter() to couple it with your view.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜