android – SimpleCursorAdapter,在API级别下交换光标低于11

前端之家收集整理的这篇文章主要介绍了android – SimpleCursorAdapter,在API级别下交换光标低于11前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
试图实现LoaderManager CursorLoader.

在onFinish方法适配器应交换其光标

public void onLoadFinished(Loader<Cursor> loader,Cursor data) {
    // Swap the new cursor in.  (The framework will take care of closing the
    // old cursor once we return.)
    mAdapter.swapCursor(data);
  }

但是,自API级别11以来,swapCursor可用.

那么我应该如何在android API 10中交换光标呢?

解决方法

原文链接:https://www.f2er.com/android/310017.html

猜你在找的Android相关文章