Instead of showing and hiding a ProgressBar in main fragment's layout, adding a item with progress bar at end of the list if response is not at last page and simply not adding it if we are at last page. No extra logic required to show/hide ProgressBar for pagination
Instead of showing and hiding a
ProgressBar
in main fragment's layout, adding aitem
with progress bar at end of the list if response is not at last page and simply not adding it if we are at last page. No extra logic required to show/hideProgressBar
for pagination