Refresh usually sets the page to 0 to load the first page of data. After refreshing, doesn’t pulling up refresh the previous one? If you want to refresh several pages at once, you can cycle the page as mentioned on the second floor, or Put per_page into the parameter to dynamically change the value
To refresh, just reload the first page. If you must load all pages, then loop through the page and request multiple times, and then parse out list.addAll(jsonList). That’s it
Why do we need to update the data that has already been loaded? If updates are forced, what's the point of pagination? For some news-type static data, there is no need to refresh it after it is loaded. If some data content in the database changes frequently, it is recommended that the server handle it and give you the changed data the next time you request paged loading.
Refresh usually sets the page to 0 to load the first page of data. After refreshing, doesn’t pulling up refresh the previous one? If you want to refresh several pages at once, you can cycle the page as mentioned on the second floor, or Put per_page into the parameter to dynamically change the value
Just enter the corresponding page directly
To refresh, just reload the first page. If you must load all pages, then loop through the page and request multiple times, and then parse out list.addAll(jsonList). That’s it
Why do we need to update the data that has already been loaded? If updates are forced, what's the point of pagination? For some news-type static data, there is no need to refresh it after it is loaded. If some data content in the database changes frequently, it is recommended that the server handle it and give you the changed data the next time you request paged loading.