【问题标题】:ExpandableListAdapter vs BaseExpandableListAdapterExpandableListAdapter 与 BaseExpandableListAdapter
【发布时间】:2017-07-17 22:57:14
【问题描述】:

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

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

【问题讨论】:

    标签: android android-adapter baseadapter


    【解决方案1】:
    1. ExpandableListAdapter:

    ExpandableListAdapter 是一个连接 ExpandableListView 的 Adapter 与基础数据。该接口的实现将 为孩子们提供数据,并为孩子们发起视图 儿童和团体。对于列表的定制,我们需要实现 ExpandableListAdapter 在我们的自定义适配器中。

    1. BaseExpandableListAdapter:

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-04-02
      • 1970-01-01
      • 1970-01-01
      • 2014-07-01
      • 1970-01-01
      • 2011-08-19
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多