【发布时间】:2017-07-17 22:57:14
【问题描述】:
ExpandableListAdapter 和 BaseExpandableListAdapter 除了一个是接口,一个是抽象方法,还有什么区别?
请为每一个应该使用它的例子。
【问题讨论】:
标签: android android-adapter baseadapter
ExpandableListAdapter 和 BaseExpandableListAdapter 除了一个是接口,一个是抽象方法,还有什么区别?
请为每一个应该使用它的例子。
【问题讨论】:
标签: android android-adapter baseadapter
- ExpandableListAdapter:
ExpandableListAdapter 是一个连接 ExpandableListView 的 Adapter 与基础数据。该接口的实现将 为孩子们提供数据,并为孩子们发起视图 儿童和团体。对于列表的定制,我们需要实现 ExpandableListAdapter 在我们的自定义适配器中。
- BaseExpandableListAdapter:
BaseExpandableListAdapter 是可扩展列表的基类 适配器用于从一些数据中提供数据和视图到 可扩展列表视图。为了创建一个自定义 ExpandableListView 我们需要 创建一个自定义类,然后扩展 BaseExpandableListAdapter 那个班级的班级。
Reference - 这也有示例,希望对您有所帮助
【讨论】: