当你看到这篇文章的时候,你也应该遇到了和我当时同样的困境,可以修改字体颜色,却无法修改字体大小,网上有很多介绍修改字体大小的方法,.其实我也找过,但是那几篇教你的,都是骗你点击量的, 这个TabLayout,不管怎么设置都无法改变字体大小!!!!!
<android.support.design.widget.TabLayout
android:id="@+id/tablayout"
android:layout_width="match_parent"
android:layout_height="50dp"
android:background="@android:color/white"
app:tabSelectedTextColor="@color/tv_gray_while_selector" />
如果想改变大小,不要用这个,换成XtabLayout
<com.androidkun.xtablayout.XTabLayout
android:id="@+id/tablayout"
android:layout_width="match_parent"
android:layout_height="50dp"
app:xTabTextSize="15sp"
app:xTabSelectedTextSize="20sp"
android:background="@android:color/white"
app:xTabSelectedTextColor="@color/pemt_green_light"
app:xTabTextAppearance="@style/MyTabLayoutTextAppearance"
app:xTabTextColor="@color/black"/>
<android.support.v4.view.V