I have set android:textAllCaps="false"
in my android.support.design.widget.TabLayout
thought it is showing the Tab Title in All caps only.
How can I remove all caps?
I have set android:textAllCaps="false"
in my android.support.design.widget.TabLayout
thought it is showing the Tab Title in All caps only.
How can I remove all caps?
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
andandroid:textAllCaps
tofalse
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.
Here is simple solution....Enjoy
use this attribute
app:tabTextAppearance="@android:style/TextAppearance.Widget.TabWidget"
It will work.https://stackoverflow.com/a/34678235/1025379
In my case two variants work:
1) By Bogdan (susemi99):
2) By Paresh Mayani. I wanted to have
android:textAllCaps="false"
andandroid:textSize="12sp"
simultaneously, so his old method works:in styles.xml:
Apply this style in layout:
Change:
<item name="android:textAllCaps">false</item>
With:
<item name="textAllCaps">false</item>