title: How to place tabs at bottom of app in a tabbedactivity
body: <p>I'm trying to use a tabbedActivity in android to create a simple app.
  I would like to put my tabs at the bottom of the screen.</p>
  
  <p><a href="https://i.stack.imgur.com/XYnfb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XYnfb.png" alt="enter image description here"></a>
  Here is what i've got when creating my Activity with android studio.</p>
  
  <p>What I would like, is the part with "SECTION 1 SECTION 2 SECTION 3" to be at the bottom of the screen.</p>
  
  <p>Here is my xml file:</p>
  
  <pre><code>&lt;android.support.design.widget.AppBarLayout
      android:id="@+id/appbar"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:paddingTop="@dimen/appbar_padding_top"
      android:theme="@style/AppTheme.AppBarOverlay"&gt;
  
      &lt;android.support.v7.widget.Toolbar
          android:id="@+id/toolbar"
          android:layout_width="match_parent"
          android:layout_height="?attr/actionBarSize"
          android:background="?attr/colorPrimary"
          app:layout_scrollFlags="scroll|enterAlways"
          app:popupTheme="@style/AppTheme.PopupOverlay"&gt;
  
      &lt;/android.support.v7.widget.Toolbar&gt;
  
      &lt;android.support.design.widget.TabLayout
          android:id="@+id/tabs"
          android:layout_width="match_parent"
          android:layout_height="wrap_content" /&gt;
  
  &lt;/android.support.design.widget.AppBarLayout&gt;
  
  &lt;android.support.v4.view.ViewPager
      android:id="@+id/container"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      app:layout_behavior="@string/appbar_scrolling_view_behavior" /&gt;
  </code></pre>
  
  <p>This code is wrapped in a <code>CoordinatorLayout</code>.
  The problem is that if I take the <code>TabLayout</code> and put it after the viewPager, it is erased from the screen.</p>
  
  <p>Anyone's got an idea please?</p>
  
  <p>EDIT : Thanks to @Vivek Mishra answer, it works ! Thanks</p>