ExpandableListAdapter与BaseExpandableListAdapter

时间:2017-07-17 22:57:14

标签: android android-adapter baseadapter

ExpandableListAdapter和BaseExpandableListAdapter有什么不同,不同之处在于接口是另一个,而另一个是抽象方法?

请举例说明应该使用它的每一个。

1 个答案:

答案 0 :(得分:0)

  1. ExpandableListAdapter:

ExpandableListAdapter是一个链接ExpandableListView的适配器 与基础数据。该接口的实现将 为孩子们提供数据,并为孩子们启动视图 儿童和团体。为了自定义列表,我们需要实现 我们的自定义适配器中的ExpandableListAdapter。

  1. BaseExpandableListAdapter:

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

Reference-这也有示例,希望对您有所帮助