android Tab Layout Design Library

I am using TabLayout from new android.support.design.widget package.

<android.support.design.widget.TabLayout
        android:id="@+id/tabs"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:tabGravity="fill"
        app:tabIndicatorColor="@android:color/white"
        app:tabMode="fixed" />

But on tablets they looks like

enter image description here

How to stretch them to fill full width. Thanks.


Source: android

Leave a Reply