title: Hitting API request in ViewPager Fragment
body: <p>I have a viewpager and used fragmentpageradapter, now I have 3 fragments and in every fragment I need to make a http request (i.e, hit a api),
  I don't want to hit all the api for 3 fragments at a time instead I require to hit the api only when the respective page is the current item visible.</p>
  <p>I have already tried setting offscreenlimit, but it did not help. What else can I try?</p>
  <pre><code>viewPager.setOffscreenLimit(0);
  </code></pre>