Using the recyclerview with a database

LostPuppy picture LostPuppy · Oct 23, 2014 · Viewed 88.1k times · Source

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

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

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

Answer

skyfishjy picture skyfishjy · Oct 31, 2014

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

You can try my CursorRecyclerViewAdapter: CursorAdapter in RecyclerView