0

I'm using pagination 3 to load paginated data. I encountered this problem when the first few pages have empty data. The recyclerview makes an automatic scroll the first items are not visible.

I solved this by scrolling the recyclerview back to the first item as soon as the adapter receives items for the first time, but this doesn't seem like a very good solution to me.

What's the best way to deal with these empty pages? Is there any way to prevent the load Method to send empty pages to the adapter?

Note that the endpoint responses are not completely empty, just the first few pages in some cases.

I can't define which is the first page that contains data before making the query.

NewbornDroid
  • 247
  • 1
  • 3
  • 12

0 Answers0