Is it possible to make CursorAdapter be set in recycleview, just like ListView?

前端 未结 2 985
轻奢々
轻奢々 2021-02-01 21:01

I didn\'t google out a solution till now to replace listview in my project, because I need to use the cursor linked with the sqlite.

Old way as followed: listview.

2条回答
  •  终归单人心
    2021-02-01 21:23

    The new RecyclerView works with a new RecyclerView.Adapter base class. So it doesn't work with the CursorAdapter.

    Currently there is no default implementation of RecyclerView.Adapter available.

    May be with the official release, Google will add it.

提交回复
热议问题