使用recyclerview与数据库数据库、recyclerview

由网友(啭捔╮笕啈冨)分享简介:目前有RecyclerView.Adapter的可用的默认实现。Currently there is no default implementation of RecyclerView.Adapter available.可能与正式发布后,谷歌将其添加。May be with the official releas...

目前有RecyclerView.Adapter的可用的默认实现。

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

可能与正式发布后,谷歌将其添加。

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

由于不存在的CursorAdapter不支持与recyclerview目前,怎能用一个recyclerview与数据库?有什么建议么 ?

Since there is no support for CursorAdapter with the recyclerview currently, how can we use a recyclerview with a database ? Any suggestions ?

推荐答案

如果您正在使用一个CursorLoader查询,你想要的,而不是ListView的RecyclerView。

If you are running a query with a CursorLoader and you want RecyclerView instead of ListView.

您可以试试我的CursorRecyclerViewAdapter:的CursorAdapter在RecyclerView

You can try my CursorRecyclerViewAdapter: CursorAdapter in RecyclerView

阅读全文

相关推荐

最新文章