0

I have a ViewPager and used FragmentPagerAdapter, now I have 4 fragments and in every fragment, I need to make an HTTP request, I don't want to hit all the API for 4 fragments at a time instead I require to hit the API only when the respective fragment is the current item visible.

Any suggestion is welcome. Thanks in advance

Jasurbek
  • 2,850
  • 3
  • 18
  • 35

0 Answers0