evant / binding-collection-adapter

Easy way to bind collections to listviews and recyclerviews with the new Android Data Binding framework
Apache License 2.0
1.92k stars 255 forks source link

Support PagingData + coroutines? #193

Open llleodeleon opened 4 years ago

llleodeleon commented 4 years ago

PagedList has been deprecated in the latest version of the jetpack Paging library.

Is it possible to have an adapter that works with PagingData?

evant commented 4 years ago

The new paging lib is still in alpha, but if someone wants to submit a pr I'd be happy to take a look.

kedzie commented 4 years ago

I have a PR in the works. I'm putting together a sample. will see how it goes.

Using AsyncPagingDataDiffer to update the BindingRecyclerViewAdapter. Could store that in the view tag instead of the ObserveableList. ...or maintain an ObserveableList in memory based on the diff. anyway I'll see how it goes.

kedzie commented 4 years ago

PR up. would like to hear your thoughts. #194

KatieBarnett commented 4 years ago

Keen on this too!