I have difficulties changing the text size of the tabs of design library tablayout (android.support.design.widget.TabLayout).
I managed to change it by assigning tabTextAppearance in TabLayout
app:tabTextAppearance="@style/MyTabLayoutTextAppearance"
the following style
14sp
but I have 2 side effects :
1) I lost the accent color of the selected tab
2) The tab text is not capitalized any more.
解决方案
Go on using tabTextAppearance as you did but
1) to fix the capital letter side effect add textAllCap in your style :
14sp
true
2) to fix the selected tab color side effect add in TabLayout xml the following library attributes :
app:tabSelectedTextColor="@color/color1"
app:tabTextColor="@color/color2"
Hope this helps.