Изменение ширины вкладок - PullRequest
0 голосов
/ 25 мая 2018

Вкладки в моем приложении выглядят следующим образом.

tabs

Можно ли по одной строке для каждого заголовка вкладок.

Это соответствующий XML-файл.

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">

<android.support.design.widget.AppBarLayout
    android:id="@+id/appBar"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">

    <include
        android:id="@+id/main_page_toolbar"
        layout="@layout/app_bar_layout"/>

    <android.support.design.widget.TabLayout
        android:id="@+id/main_tabs"
        app:tabTextColor="@android:color/white"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:tabMaxWidth="0dp"
        app:tabGravity="fill"
        app:tabMode="fixed">

</android.support.design.widget.TabLayout>
</android.support.design.widget.AppBarLayout>

<android.support.v4.view.ViewPager
    android:id="@+id/main_TabPager"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_below="@+id/appBar"> . 
</android.support.v4.view.ViewPager>
</RelativeLayout>
...