android:textAllCaps=“false” not working for TabLayout design Support

后端 未结 13 1442
暗喜
暗喜 2020-11-30 01:27

I have set android:textAllCaps=\"false\" in my android.support.design.widget.TabLayout thought it is showing the Tab Title in All caps only.

<
13条回答
  •  星月不相逢
    2020-11-30 02:11

    UPDATE FOR DESIGN LIBRARY 23.2.0+

    The original answer doesn't work with design library 23.2.0 or later. Thanks for @fahmad6 pointed out in comment, in case someone missed that comment, I'll put it here. You need to set both textAllCaps and android:textAllCaps to false to disable all capitalize setting.

    
    

    ORIGINAL ANSWER

    By default, tabs are created by TabLayout sets the textAllCaps property to be true, you have to define a style making this flag false.

    
    
    
    

提交回复
热议问题