title: ViewPager and FragmentTabHost display content twice
body: <p>I have tabs that contains <code>Fragment</code> and i want to provide the swipe gesture to move right and left. I'm using it inside of <code>Fragment</code> and inside of activity. I use <code>ViewPager</code> inside of <code>FragmentTabHost</code> both from <code>support.v4</code> package (need to work on >=API 10). The problem is that the pager starts showing the content from the top of layout and tabhost is showing the tabs first and then the content. Of course i want the second behavior. So what i see is the content twice, one with tabs and one without. Here is my layout xml file. Notice that i have also some other views above the tabhost <code>(@+id/relative_header)</code> so action bar tabs don't fit in this case. I've already try to move pager into <code>realtabcontent</code>  or above it with no luck.</p>
  
  <pre><code> &lt;android.support.v4.app.FragmentTabHost
      android:id="@android:id/tabhost"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:layout_alignParentLeft="true"
      android:layout_below="@+id/relative_header" &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:orientation="horizontal"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_weight="0"&gt; 
          &lt;/TabWidget&gt;
          &lt;FrameLayout
              android:id="@android:id/tabcontent"
              android:layout_width="0dp"
              android:layout_height="0dp"
              android:layout_weight="0" /&gt;
          &lt;FrameLayout
              android:id="@+android:id/realtabcontent"
              android:layout_width="match_parent"
              android:layout_height="0dp"
              android:layout_weight="1"/&gt;
          &lt;android.support.v4.view.ViewPager
              android:id="@+id/pager"
              android:layout_width="match_parent"
              android:layout_height="match_parent"/&gt;
  
      &lt;/LinearLayout&gt;
  &lt;/android.support.v4.app.FragmentTabHost&gt;
  </code></pre>
  
  <p>I'm not sure but I assume that one of them is incompatible with the other, but i don't know which compination should use to provide swipe gesture between fragments tabs. Any idea about what I'm doing wrong? </p>