I've used ViewPager
and TabLayout
in my app, and the items in the TabLayout are dynamically received and fetched from the server. When the item is clicked on the TabLayout, items are fetched from the server and displayed inside the screen.
But when I click on the fourth tab and return again, the items are retrieved from the server, which means the update fails. What do you recommend to prevent this?