标签: android listadapter expandablelistadapter
我有Activity ListView,其中Adapter填充了ArrayAdapter<A>,扩展了参数化A。参数化此Adapter的类List封装了类B的{{1}}个对象。我希望我的ExpandableListView包含类A的对象作为B类的组和对象作为它们的子项。有没有简单的方法来执行此转换?我无法找到任何可以参数化的类ExpandableListAdapter。
Activity
ListView
Adapter
ArrayAdapter<A>
A
List
B
ExpandableListView
ExpandableListAdapter