首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >ExpandableListAdapter vs BaseExpandableListAdapter

ExpandableListAdapter vs BaseExpandableListAdapter
EN

Stack Overflow用户
提问于 2017-07-18 06:57:14
回答 1查看 333关注 0票数 3

除了接口和抽象方法的区别之外,ExpandableListAdapter和BaseExpandableListAdapter还有什么区别呢?

请给出每一个应该使用它的例子。

EN

回答 1

Stack Overflow用户

发布于 2020-06-01 12:26:49

  1. ExpandableListAdapter:

ExpandableListAdapter是一个将ExpandableListView与底层数据链接起来的适配器。此接口的实现将为孩子提供数据,并为孩子和组启动视图。对于列表的自定义,我们需要在自定义适配器中实现ExpandableListAdapter。

  1. BaseExpandableListAdapter:

BaseExpandableListAdapter是用于向ExpandableListView提供来自某些数据的数据和视图的可扩展列表适配器的基类。为了创建自定义ExpandableListView,我们需要创建一个自定义类,然后在该类中扩展BaseExpandableListAdapter类。

Reference -这也有例子,希望这能有所帮助

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/45154883

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档