title: How to add swipe able tabs in Fragments?
body: <p>I am using <code>FragmentTabHost</code> to add tabs in Fragment</p>
  
  <p>Below is my code:</p>
  
  <pre><code>import android.os.Bundle;
  import android.support.v4.app.Fragment;
  import android.support.v4.app.FragmentTabHost;
  import android.view.LayoutInflater;
  import android.view.View;
  import android.view.ViewGroup;
  
  public class ExploreFragment extends Fragment {
  
      private FragmentTabHost mTabHost;
  
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
  
      }
  
      @Override
      public View onCreateView(LayoutInflater inflater, ViewGroup container,
                               Bundle savedInstanceState) {
          // Inflate the layout for this fragment
  
          View rootView = inflater.inflate(R.layout.fragment_explore, container, false);
  
          mTabHost = (FragmentTabHost) rootView.findViewById(android.R.id.tabhost);
          mTabHost.setup(getActivity(), getChildFragmentManager(), android.R.id.tabcontent);
  
          mTabHost.addTab(mTabHost.newTabSpec("fragmentb").setIndicator("Fragment B"),
                  ContactUsFragment.class, null);
          mTabHost.addTab(mTabHost.newTabSpec("fragmentc").setIndicator("Fragment C"),
                  MyProfileFragment.class, null);
          mTabHost.addTab(mTabHost.newTabSpec("fragmentd").setIndicator("Fragment D"),
                  RaiseCampaignFragment.class, null);
  
  
          return rootView;
      }
  }
  </code></pre>
  
  <p>And my xml is like :</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="fill_parent"
              android:layout_height="wrap_content"
              android:layout_gravity="bottom" /&gt;
  
          &lt;FrameLayout
              android:id="@android:id/tabcontent"
              android:layout_width="fill_parent"
              android:layout_height="0dp"
              android:layout_weight="1" /&gt;
      &lt;/LinearLayout&gt;
  &lt;/android.support.v4.app.FragmentTabHost&gt;
  </code></pre>
  
  <p>I have added 3 tabs successfully, but I am unable to swipe them or can say they are not swipeable.</p>
  
  <p>How to make the tabs swipeable?</p>
  
  <p><strong>Please Help!!</strong></p>