Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android

How to hide divider between tabs? How to change the tab title color when selected or unselected?

Hello!

I'm making a tabbed app and I need to hide the divider between tabs (or to change its color) but I can't. How can I do it?

Also, I need to change the color of tab titles. Tried with no success...

This is how my styles.xml is right now:

<resources>
    <style name="AppTheme" parent="@style/Theme.AppCompat.Light">
        <item name="colorPrimary">@color/green</item>
        <item name="colorPrimaryDark">@color/dark_green</item>
        <item name="colorAccent">@color/white</item>
        <item name="android:textColorPrimary">@color/white</item>

        <item name="android:textColor">@color/black</item>

        <item name="actionBarTabTextStyle">@style/CustomActionBarTabTextStyle</item>
    </style>

    <style name="CustomActionBarTabTextStyle" parent="Theme.AppCompat.Light">
        <item name="android:textColor">@color/white</item>
        <item name="android:textSize">14dp</item>
        <item name="android:textStyle">bold</item>
    </style>
</resources>

Thanks!