title: How to prevent a FragmentPagerAdapter from loading the next Fragment in advance?
body: <p>I am using a <code>FragmentPagerAdapter</code> to swipe three Fragments. It's not giving me any errors, but it always loads the next Fragment in advance. How can I stop this behavior?</p>
  
  <p>Here is my <code>FragmentPagerAdapter</code>:</p>
  
  <pre><code>public class ViewPagerAdapter extends FragmentPagerAdapter {
      private Context _context;
  
      public ViewPagerAdapter(Context context, FragmentManager fm) {
          super(fm);
          _context = context;
      }
  
      @Override
      public Fragment getItem(int position) {
          Fragment f = new Fragment();
          switch (position) {
          case 0:
              f = ReservationTab.newInstance(_context);
              break;
          case 1: 
              f = GalleryTab.newInstance(_context);
              break;
          case 2:
              f = VideoTab.newInstance(_context);
              break;
          }
          return f;
      }
  
      @Override
      public int getCount() {
          return 3;
      }
  }
  </code></pre>