开发者

populate an expandableListView with arrayLists

开发者 https://www.devze.com 2023-03-27 15:07 出处:网络
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.

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

精彩评论

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