title: getChildFragmentManager() from Fragment
body: <p>In my application I have a fragment class whose activity class is <code>AppCompatActivity</code> and in particular fragment I have a <code>ViewPager</code> and I want to inflate using <code>FragmentStatePagerAdapter</code> inner class.</p>
  
  <p><strong>Adapter Class:</strong></p>
  
  <pre><code> private class SliderAdapter extends FragmentStatePagerAdapter{
          List&lt;android.support.v4.app.Fragment&gt; frags;
          Context ctx;
  
          public SliderAdapter(FragmentManager fm, List&lt;android.support.v4.app.Fragment&gt; frags, Context ctx) {
              super(fm);
              this.frags = frags;
              this.ctx = ctx;
          }
  
          @Override
          public android.support.v4.app.Fragment getItem(int position) {
              return frags.get(position);
          }
  
          @Override
          public int getCount() {
              return frags.size();
          }
  
          @Override
          public Object instantiateItem(ViewGroup container, int position) {
              RelativeLayout rl = (RelativeLayout) container.inflate(ctx,R.layout.news_pager_layout,null);
              ImageView img = (ImageView) rl.findViewById(R.id.slidr_img);
              TextView catTxt = (TextView) rl.findViewById(R.id.catTxt);
              TextView titleText = (TextView) rl.findViewById(R.id.slider_text);
              TextView viewCount = (TextView) rl.findViewById(R.id.view_count);
              ((ViewPager)container).addView(rl);
              return rl;
          }
      }
  </code></pre>
  
  <p>Now I am trying to pass <code>FragmentManager</code> to it from my fragment class containing the ViewPager but I am getting error of incompatible parameters</p>
  
  <pre><code>SliderAdapter adp = new SliderAdapter(getChildFragmentManager(),list);
  </code></pre>