I am trying to make my ViewPager Tab text in small caps but its not working,
I have searched and checked other post related to this, tried their solution, but still doesn't work
<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>
ViewPager Tab layout
<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" />
Please any confirmed working solution to this?
thanks.
Its bit late but hope it will help some one. If you are using support design then you just need to add below mentioned line in your tab layout and get the expected results.
app:tabTextAppearance="@android:style/TextAppearance.Widget.TabWidget"
<item name="textAllCaps">false</item>
<item name="android:textAllCaps">false</item>
in your MyCustomTextAppearanceandroid:theme="@style/MyCustomTabLayout"
withstyle="@style/MyCustomTabLayout"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With