How to lowercase font in View Pager and Tab Layout tabs?

It has been asked in the community on how to lowercase the tabs text.

However, to make this work you have to be comfortable in decompiling and recompiling back to apk..

Steps to follow.

  • Decompile
  • Go to ..\AppName\res\values folder
  • Open styles.xml file with a text editor (I prefer using Notepad++)
  • Find (see below, row  1548)

    <style name="TextAppearance.Design.Tab" parent="@style/TextAppearance.AppCompat.Button">
    <item name="android:textSize">@dimen/design_tab_text_size</item>
    <item name="android:textColor">@color/mtrl_tabs_legacy_text_color_selector</item>
    <item name="textAllCaps">true</item>
    </style>
  • Edit from

    <item name="textAllCaps">true</item>
  • Edit to

    <item name="textAllCaps">false</item>
  • Save and recompile

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.