gpt4 book ai didi

android - ExpandableListAdapter 与 BaseExpandableListAdapter

转载 作者:行者123 更新时间:2023-12-04 17:50:44 24 4
gpt4 key购买 nike

ExpandableListAdapter 和 BaseExpandableListAdapter 除了一个是接口(interface)一个是抽象方法的区别外,还有什么区别?

请针对每一个应用程序给出示例。

最佳答案

  1. ExpandableListAdapter:

ExpandableListAdapter is an Adapter that links a ExpandableListView with the underlying data. The implementation of this interface will provide the data for the children and also initiate the views for the children and groups. For customization of list we need to implement ExpandableListAdapter in our custom adapter.

  1. BaseExpandableListAdapter:

BaseExpandableListAdapter is a base class for the expandable list adapter used to provide data and Views from some data to ExpandableListView. For Creating a custom ExpandableListView we need to create a custom class and then extends BaseExpandableListAdapter class in that class.

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

关于android - ExpandableListAdapter 与 BaseExpandableListAdapter,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45154883/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com