Is it possible to turn off pagination in the Android Jetpack Paging3-library to load all the data at once?

394 views Asked by At

There are 2 types of lists in my application. Shortlists should load instantly without pagination. Long lists must be loaded page by page. I would not like to write 2 different codes and I want to use the paging library in both cases by simply changing the parameters. How can I do that?

1

There are 1 answers

0
dlam On

You can modify the size of the initial load with PagingConfig.initialLoadSize.