Tab text is overflowing to next line in android
<p>I have to use four tabs with tab text and icons.But when i put the fourth tab the text is overflowing to next line.I have to put all the tab text in single line not multiple.<br>
These are the codes:-  </p>

<pre><code>  &lt;android.support.design.widget.TabLayout
        android:id="@+id/tabs"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="8"
        app:tabBackground="@drawable/custom_bg"
        app:tabGravity="fill"
        app:tabIndicatorHeight="0dp"
       /&gt;
</code></pre>

<p>and the tabs contains:-  </p>

<pre><code>&lt;TextView xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:id="@+id/tab"
    android:singleLine="true"
    android:gravity="center_horizontal"
    android:layout_centerHorizontal="true"
    /&gt;
</code></pre>

<p>The below given the screenshot of my issue.The competition named tab is not showing the text in single line.When i hide     android:singleLine="true" text overflows to next line.How can i solve the issue ??</p>