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

后端 未结 13 1418
暗喜
暗喜 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:22

    In my case two variants work:

    1) By Bogdan (susemi99):

    
    

    2) By Paresh Mayani. I wanted to have android:textAllCaps="false" and android:textSize="15sp" simultaneously, so his old method works.

    In styles.xml write (parent may vary, for instance, "@android:style/TextAppearance.Widget.TabWidget", "TextAppearance.Design.Tab"):

    
    
    
    

    Apply this style in layout:

    
    

提交回复
热议问题