Closed Rainer-Lang closed 8 years ago
i've been toying with this. i'm trying to come up with an example/idea that demonstrates the pagination action purely through Rx. linked project is pretty nifty, but relies (from a quick perusal) on the recycling nature of the recycler-view). let me try to cook something up too.
I really liked (and am using a variation of) Matthias Käppler's Rx pager gist: https://gist.github.com/mttkay/24881a0ce986f6ec4b4d
But you need a very solid grasp of the used operators to understand how it works (aka confusing for beginners)
that's super sweet. never come across that before. will definitely take a peek for inspiration :)
added a simple pagination example https://github.com/kaushikgopal/RxJava-Android-Samples#pagination
@kaushikgopal I am a beginner to Rxjava. I checked your example for pagination and couldn't understand it clearly. Would like to know how you handle errors when server returns some. I got io.reactivex.exceptions.OnErrorNotImplementedException:
while implementing your example. please help me.
Have a look into this example : https://github.com/matzuk/PaginationSample