1
votes

I'm able to change a lot of colors through using the Android style documentation from here and looking at the source here and here.

Using what I learned above, I was able to change the ActionBar.TabBar, ActionBar.TabText, and ActionBar.TabView, but I don't know what that little highlight is called. Searching for a holo blue in the android source code from above also didn't help.

I still don't know if there is any way in styles.xml to specify that "blue" highlight color to be changed.

enter image description here


EDIT:

I know that I can use the the action bar style generator, but I'm looking at if I can set the color of it in code (whether it be java or xml). I would not like to have to generate a new drawable for this purpose.

1
You might have to create your own themeEenvincible
Have you checked this out? stackoverflow.com/questions/14722654/…user1282637

1 Answers

0
votes

The easiest way You can have is to use Android Action Bar Style Generator to easily theme your action bar and tabs.

You can also refer ActionBar Documents for a customized ActionBar.Something like

<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- the theme applied to the application or activity -->
<style name="CustomActivityTheme" parent="@android:style/Theme.Holo">
    <item name="android:actionBarStyle">@style/MyActionBar</item>
    <!-- other activity and action bar styles here -->
</style>

<!-- style for the action bar backgrounds -->
<style name="MyActionBar" parent="@android:style/Widget.Holo.ActionBar">
    <item name="android:background">@drawable/ab_background</item>
    <item name="android:backgroundStacked">@drawable/ab_background</item>
    <item name="android:backgroundSplit">@drawable/ab_split_background</item>
</style>
</resources>

Alternatively you can try ActionBarSherlock.There is one sample available in the library named "Style ActionBar".Using this you can change ActionBar tabs underline color.

I also see a useful link in a comment to your question.You are good to go after referring all these links.

Hope this helps.