Answer the question
In order to leave comments, you need to log in
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" />
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question