title: layout_height="wrap_content" not working for android.support.design.widget.TabLayout
body: <pre><code> &lt;android.support.design.widget.CoordinatorLayout
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  
      &lt;android.support.design.widget.AppBarLayout
          android:id="@+id/app_bar_layout"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"&gt;
  
      &lt;android.support.v7.widget.Toolbar 
          android:id="@+id/toolbar"
          android:minHeight="?attr/actionBarSize"
          android:background="@color/primary_color"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          app:theme="@style/AppTheme"
          app:layout_scrollFlags="scroll|enterAlways"
          app:popupTheme="@style/AppTheme" /&gt;
  
          &lt;android.support.design.widget.TabLayout
              android:id="@+id/tabs"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              app:tabMode="fixed"
              app:tabIndicatorColor="@color/red"
              app:tabIndicatorHeight="3dp"
              app:tabGravity="fill"/&gt;
      &lt;/android.support.design.widget.AppBarLayout&gt;
  
      &lt;android.support.v4.view.ViewPager
          android:id="@+id/pager"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          app:layout_behavior="@string/appbar_scrolling_view_behavior"
          android:layout_below="@+id/app_bar_layout"/&gt;
  
  &lt;/android.support.design.widget.CoordinatorLayout&gt;
  </code></pre>
  
  <p>I have set the custom UI for tab : </p>
  
  <pre><code>private TabLayout mTabLayout;
  for (int i = 0; i &lt; TITLES.length; i++) {
          RelativeLayout tabView = (RelativeLayout) LayoutInflater.from(this).inflate(R.layout.custom_tab, null);
          mTabLayout.getTabAt(i).setCustomView(tabView);
  }
  </code></pre>
  
  <p>The below is my custom UI : <em>custom_tab.xml</em></p>
  
  <pre><code>&lt;TextView
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/tab"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:singleLine="true"
      android:text="Title"
      android:textSize="14sp"/&gt;
  </code></pre>
  
  <p>When I increase the above height of text view then the height of Tablayout doesn't increases and the custom view in tab get cut-off from the bottom.</p>
  
  <p>I think some how Tablayout's height is fixed (may be the height of Action bar), even changing the it's height to "match_parent" doesn't work.</p>
  
  <p><strong>How can I increase the height of Tablayout? Is there anything I'm doing wrong?</strong></p>