G
G
giksen2021-03-24 17:48:28
Android
giksen, 2021-03-24 17:48:28

How to change the title text size of the selected TabLayout tab?

I have a TabLayout which is used to implement the ViewPager. I can switch between fragments and change tabs. How can I make the test of the selected tab resize as I want?
The code

<com.google.android.material.tabs.TabLayout
            android:id="@+id/tabs"
            style="@style/MyCustomTabLayout"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="25dp"
            android:background="@color/blockColor"
            android:backgroundTint="#FFFFFF" />

How it looks now:
605b51041c369073465434.png
How it should look:
605b5130c3940922008717.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question