How to completely change the list of jetpack's pagination library in android in single click or so?

443 Views Asked by At

How to change data or completely change the list of pagination in android. I am using android jetpacks pagination library. I also have search and sorting feature. I am not able to understand where do I change or put new data or list so that the current list disappears and the new list comes up. Should I make new data source for this? or am I supposed to make new data source new data source factory and new pagedList and then submit this list using adapter.submitlist() to the same adapter ? Please help, I am new to using this pagination library.

1

There are 1 best solutions below

0
Hussnain Haidar On