我试图将我的ViewPager选项卡文本转换为小型大写字母,但它没有生效。
我已经搜索并检查了其他相关的帖子,尝试了它们的解决方案,但仍然不起作用。
<style name="MyCustomTabLayout" parent="Widget.Design.TabLayout">
<item name="tabTextAppearance">@style/MyCustomTextAppearance</item>
</style>
<style name="MyCustomTextAppearance" parent="TextAppearance.Design.Tab">
<item name="textAllCaps">false</item>
</style>
ViewPager标签布局
<android.support.design.widget.TabLayout
android:id="@+id/tabs"
app:textAllCaps="false"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/MyCustomTabLayout" />
有任何已确认可行的解决方案吗?
谢谢。