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

后端 未结 13 1425
暗喜
暗喜 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 01:58

    For those who can't get working other answers.

    Defining a style is working fine when you have single line tab text. If you take a close look into the TabLayout, you'll see that it's using a field design_tab_text_size_2line when the tabs has more than one line.

    The only way I could find to effect this field is to override it in your dimen file.

    So put this in your values/dimens.xml

    10sp
    

    Hope it helps.

提交回复
热议问题