title: Nested fragment in a tab inside?
body: <p>I have three tabs in a fragment. And I want to create each tab in a new fragment. I show the <a href="http://developer.android.com/reference/android/support/v4/app/FragmentTabHost.html" rel="nofollow">google code</a>. Now, my code can create the tabs, but doesn't show anything in the content of each tab. </p>
  
  <p>My main fragment xml:</p>
  
  <pre><code>&lt;android.support.v4.app.FragmentTabHost 
      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:layout_width="match_parent"
          android:layout_height="match_parent"
          android:orientation="vertical" &gt;
  
          &lt;TabWidget
              android:id="@android:id/tabs"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_weight="0"
              android:orientation="horizontal" /&gt;
  
          &lt;FrameLayout
              android:id="@android:id/tabcontent"
              android:layout_width="match_parent"
              android:layout_height="0dp"
              android:layout_weight="1" /&gt;
      &lt;/LinearLayout&gt;
  &lt;/android.support.v4.app.FragmentTabHost&gt;
  </code></pre>
  
  <p>How i create the tabs:</p>
  
  <pre><code>public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle     savedInstanceState) {
      mTabHost = new FragmentTabHost(activity);
      mTabHost.setup(getActivity(), getChildFragmentManager(), android.R.id.tabcontent);
  
      mTabHost.addTab(mTabHost.newTabSpec("tab1").setIndicator("Tab 1"), IconsFragment.class, null);
  
      return mTabHost;
  }
  </code></pre>
  
  <p>In IconsFragment, I inflate the view normally as normal fragment. But I don't see any item in this fragment. How I can create the tabs with nested fragments?</p>