除了接口和抽象方法的区别之外,ExpandableListAdapter和BaseExpandableListAdapter还有什么区别呢?
请给出每一个应该使用它的例子。
发布于 2020-06-01 12:26:49
ExpandableListAdapter是一个将ExpandableListView与底层数据链接起来的适配器。此接口的实现将为孩子提供数据,并为孩子和组启动视图。对于列表的自定义,我们需要在自定义适配器中实现ExpandableListAdapter。
BaseExpandableListAdapter是用于向ExpandableListView提供来自某些数据的数据和视图的可扩展列表适配器的基类。为了创建自定义ExpandableListView,我们需要创建一个自定义类,然后在该类中扩展BaseExpandableListAdapter类。
Reference -这也有例子,希望这能有所帮助
https://stackoverflow.com/questions/45154883
复制相似问题