Reputation: 1244
I have a Theme.Holo.Light
style, which is custom designed. Therefore I want to have the little tick on the contextual action mode in normal Theme.Holo
style.
As you can see, it would look much better if the tick was white.
I thought the following would work, but no success.
<style name="PlayerTheme" parent="@android:style/Theme.Holo.Light">
...
<item name="android:actionModeCloseButtonStyle">@android:style/Widget.ActionButton.CloseMode</item>
</style>
Is there some way to make the tick white? Thanks!
Upvotes: 0
Views: 239
Reputation: 251
You can copy the standard white check mark from the android icon pack into your project as a drawable. The icon pack can be found here: https://developer.android.com/design/downloads/index.html. It's under the 01_core_accept folder and named ic_action_accept.png.
Then, set the following property in your style file:
<item name="android:actionModeCloseDrawable">@drawable/ic_action_accept</item>
That should solve your problem.
Upvotes: 0