Skip to content

How can I style the "TabbedBar" element #12589

Answered by m1ga
caspahouzer asked this question in Q&A
Discussion options

You must be logged in to vote

    <style name="Base.Widget.Design.TabLayout" parent="Widget.Design.TabLayout">
         <item name="tabSelectedTextColor">#f00</item>
         <item name="tabTextColor">#ff0</item>
         <item name="tabTextAppearance">@style/MyCustomTabTextAppearance</item>
    </style>

    <style name="MyCustomTabTextAppearance" parent="TextAppearance.Design.Tab">
        <item name="textAllCaps">false</item>
        <item name="android:textAllCaps">false</item>
    </style>

Think the parent is not correct since it will remove parts like the underline and the ripple effect. So you have find the proper parent or add those again.
Got the parts from here: https://chromium.googlesource.com/android_to…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by caspahouzer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants