title: How to implement android TabLayout design support libarary with Swipe views
body: <p>I am going to use android TabLayout design support library but i don't know how to use swipe view.</p>
  
  <p><strong>Here is my Code</strong></p>
  
  <p>XML:</p>
  
  <pre><code>&lt;android.support.design.widget.TabLayout
          android:id="@+id/tabLayout"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"/&gt;
  </code></pre>
  
  <p>Java:</p>
  
  <pre><code>TabLayout tabLayout;
  
  tabLayout = (TabLayout) findViewById(R.id.tabLayout);
      tabLayout.addTab(tabLayout.newTab().setText("Tab 1"));
      tabLayout.addTab(tabLayout.newTab().setText("Tab 2"));
      tabLayout.addTab(tabLayout.newTab().setText("Tab 3"));
  </code></pre>