title: Spinner not updating properly in ViewPager inside Dialog Fragment
body: <p>I have <code>ViewPager</code> inside <code>DialogFragment</code> and I have three <code>Fragment</code> in the <code>ViewPager</code> each having a spinner which updates from the API calls.Whenever the fragment is initiated its get spinner values from the server
  Now the problem is when ever user swipe the pager let say i swipe from page 1 to page 2 than the spinner value gets updated from page 3
  I know that <code>ViewPager</code> has <code>mViewPager.setOffscreenPageLimit(MAX_LIMIT);</code> but minimum value is 1</p>
  
  <p>Is there any way or work around for this problem ?</p>
  
  <p>I have refer this <a href="http://www.truiton.com/2015/06/android-tabs-example-fragments-viewpager/" rel="nofollow noreferrer">Example</a></p>