NextFaze / power-adapters

Composable adapters for Android RecyclerViews and ListViews
Apache License 2.0
108 stars 13 forks source link

Add Data implementation backed by a cursor #47

Closed DSteve595 closed 7 years ago

DSteve595 commented 7 years ago

45

CursorData receives a cursor and provides a framework for populating elements with the cursor as the backing data. The cursor can be replaced with another cursor to change the data set, or null to empty the list.

There are no tests currently written, but it does work in my app. CursorData and its relevant methods have Javadocs.

BenTilbrook commented 7 years ago

I've actually got an implementation of this in progress already, which I may be able to add later this week. I'll add a few comments on your implementation anyway, though.

DSteve595 commented 7 years ago

Oh awesome, I'm not super familiar with the library yet so I'm sure yours will be much better. Comments would be greatly appreciated.

BenTilbrook commented 7 years ago

I've completed adding Cursor Data support (#45).