Reputation: 707
I'm working on an android app and have come across an issue, I have managed to get the list items on the action bar to highlight to the color i want but the 'spinner' area around the item is staying the default blue, does anyone know how i can change this color?
Upvotes: 1
Views: 218
Reputation: 707
I've fixed it!
I used this website which allows you set colors etc. for your action bar and then you just put them in your drawables folder and link it up with the style sheet.
I'm not sure if its the cleanest fix but it works.
http://jgilfelt.github.io/android-actionbarstylegenerator/
Upvotes: 1
Reputation: 463
Try this: (without Sherlok)
<style name="Theme.MyTheme" parent="@style/YourTheme">
<item name="android:selectableItemBackground">@drawable/ab_selector</item>
<item name="android:actionBarWidgetTheme">@style/WidgetStyle</item>
</style>
<style name="WidgetStyle" parent="Widget">
<item name="android:itemBackground">@drawable/ab_menu_selector</item>
</style>
Upvotes: 0