【问题标题】:How to deal with CursorAdapter and switching Contacts API?如何处理 CursorAdapter 和切换 Contacts API?
【发布时间】:2010-11-05 13:11:47
【问题描述】:

有没有人尝试将CursorAdapter 与新旧 api 一起使用?

您有此类解决方案的一些代码示例吗?

【问题讨论】:

    标签: android cursor adapter android-contacts


    【解决方案1】:

    有没有人尝试将 ContactAdapter 与新旧 api 一起使用?

    Android SDK 中没有ContactAdapter 类,所以我不确定你在这里指的是什么。

    您有此类解决方案的一些代码示例吗?

    Here is an example 显示使用条件类加载来填充基于旧 API 或新 API 的 SimpleCursorAdapter,具体取决于您运行的 Android 版本。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-06-28
      相关资源
      最近更新 更多