Android TableLayout将textAllCaps设置为False不工作

Android TableLayout将textAllCaps设置为False不工作,android,android-layout,android-studio,android-viewpager,android-tablayout,Android,Android Layout,Android Studio,Android Viewpager,Android Tablayout,我正在尝试使我的ViewPager选项卡文本使用小写字母,但它不起作用 我已经搜索并检查了其他与此相关的帖子,尝试了他们的解决方案,但仍然不起作用 <style name="MyCustomTabLayout" parent="Widget.Design.TabLayout"> <item name="tabTextAppearance">@style/MyCustomTextAppearance</item> </style> &l

我正在尝试使我的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>

@样式/MyCustomTextAppearance
假的
查看寻呼机选项卡布局

<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" />

请确认这方面的任何工作解决方案

谢谢。

你试过这个吗 createDefaultTabView()方法

需要将textView.setAllCaps(true)更改为false


这个问题是在谷歌上报道的

其中
app:textAllCaps=“false”
样式不起作用

但在Android支持库发布后,修订版(2016年3月)这个问题已经解决。

将支持库更新为
Android支持库至23.2.1


虽然有点晚了,但希望它能帮助一些人。 如果您使用的是支持设计,那么您只需要在选项卡布局中添加下面提到的行,并获得预期的结果

app:tabTextAppearance="@android:style/TextAppearance.Widget.TabWidget"
  • 试着两者都用
    false
    在MyCustomTextAppearance中为false
  • 在ViewPager选项卡布局中,将android:theme=“@style/myCustomTableLayout”替换为
    style=“@style/myCustomTableLayout”

  • 你试过这个吗?有什么解决办法吗?我甚至尝试在主题中将tabIndicatorHeight设置为25dp,但它不会更新。似乎表格布局甚至不尊重指定的主题。不,我最终使用了SlidingTableOut,它也有自己的问题。