title: FragmentStatePagerAdapter is deprecated from API 27
body: <p><code>FragmentStatePagerAdapter</code> is deprecated from API 27. What's the alternative of <code>FragmentStatePagerAdapter</code>?</p>
  <pre><code>private class MainPagerAdapter extends FragmentStatePagerAdapter {
  
      MainPagerAdapter(FragmentManager fm) {
          super(fm);
      }
  
      @Override
      public Fragment getItem(int position) {
          Fragment result = new DummyFragment();
          return result;
      }
  
      @Override
      public int getCount() {
          return 5;
      }
  
  }
  </code></pre>
  <p>Above code shows <code>FragmentStatePagerAdapter</code>, <code>getItem(...)</code> and <code>super(...)</code> as deprecated.</p>