ExpandableListAdapter与BaseExpandableListAdapter

问题描述 投票:3回答:1

[ExpandableListAdapter和BaseExpandableListAdapter之间有什么区别,除了一个区别是接口,另一个是抽象方法?

请为每个应使用的示例提供示例。

android android-adapter baseadapter
1个回答
0
投票
  1. ExpandableListAdapter:

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

  1. BaseExpandableListAdapter:

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

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

© www.soinside.com 2019 - 2024. All rights reserved.