title: On what content do I replace a fragment from within a tab when using the FragmentTabsPager Compatability Library Example?
body: <p>I will attempt to keep it short and to the point. </p>
  
  <p>Observe the screenshot below :
  <img src="https://i.stack.imgur.com/C7dhN.png" alt="enter image description here"></p>
  
  <p>How do I implement a way that, when I press an item on this ListView, the fragment is replaced with a new fragment with data of the corresponding player? Am I supposed to replace the content of the FrameLayout tabcontent? and if so, how do I make sure that the ViewPager still remains functional?</p>
  
  <p>the XML of the "Base Activity": </p>
  
  <pre><code>&lt;TabHost
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:id="@android:id/tabhost"
  android:layout_width="match_parent"
  android:layout_height="match_parent"&gt;
  
  &lt;LinearLayout
      android:orientation="vertical"
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  
      &lt;TabWidget
          android:id="@android:id/tabs"
          android:orientation="horizontal"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_weight="0"/&gt;
  
      &lt;FrameLayout
          android:id="@android:id/tabcontent"
          android:layout_width="0dp"
          android:layout_height="0dp"
          android:layout_weight="0"/&gt;
  
      &lt;android.support.v4.view.ViewPager
          android:id="@+id/pager"
          android:layout_width="match_parent"
          android:layout_height="0dp"
          android:layout_weight="1"/&gt;
  
  &lt;/LinearLayout&gt;
  &lt;/TabHost&gt;
  </code></pre>
  
  <p>And this is the onActivityCreated :</p>
  
  <pre><code>@Override
      public void onActivityCreated(Bundle savedInstance)
      {
          super.onActivityCreated(savedInstance);
          setHasOptionsMenu(true);
  
  
          listView = (ListView)getActivity().findViewById(R.id.lv_federations);
          listView.setVisibility(View.GONE);
          if (savedInstance == null)
          {
              new PullFederationDataTask().execute();
  
          }       
  
          listView.setOnItemClickListener(new OnItemClickListener() {
  
              @Override
              public void onItemClick(AdapterView&lt;?&gt; arg0, View arg1,
                      int position, long arg3) 
              {
                  // Replace Fragment
              }
          });
      }
  </code></pre>
  
  <p>What do I do?</p>