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 ArrayList
s 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.
精彩评论