开发者

Convert ListView to ExpandableListView

开发者 https://www.devze.com 2023-02-26 14:43 出处:网络
I\'ve got an Activity with a ListView, filled with the help of an Adapter, that extends a param开发者_JAVA技巧eterized ArrayAdapter<A>. Class A, that parameterizes this Adapter encapsulates a Li

I've got an Activity with a ListView, filled with the help of an Adapter, that extends a param开发者_JAVA技巧eterized ArrayAdapter<A>. Class A, that parameterizes this Adapter encapsulates a List of objects of class B. I want my ExpandableListView to contain objects of class A as groups and objects of class B to be their children. Is there a simple way to perform this conversion? I was not able to find any classes, implementing ExpandableListAdapter, that can be parameterized.

0

精彩评论

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