【发布时间】:2015-12-21 02:46:54
【问题描述】:
我正在尝试将我的 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" />
请对此有任何确认的有效解决方案?
谢谢。
【问题讨论】:
-
有什么解决办法吗?我什至尝试在主题中将 tabIndicatorHeight 设置为 25dp,但它不会更新。似乎 TabLayout 甚至不会尊重分配的主题。
-
不,我最终使用了 SlidingtabLayout,它也有自己的问题。
标签: android android-layout android-studio android-viewpager android-tablayout