loeschg
loeschg

Reputation: 30581

Change Context Action Bar checkmark/done drawable?

Is there a good way to change the Context Action Bar checkmark drawable without creating a custom view for the whole Action Bar?

contextual action bar

Upvotes: 3

Views: 1447

Answers (1)

Grant Amos
Grant Amos

Reputation: 2256

Yes there is. You simply need to add the "actionModeCloseDrawable" item to your style.

<style name="MyCustomTheme" parent="@style/Theme.AppCompat.Light">
    <item name="android:actionModeCloseDrawable">@drawable/my_custom_close_icon</item>

    <!-- Support library compatibility -->
    <item name="actionModeCloseDrawable">@drawable/my_custom_close_icon</item>
</style>

Upvotes: 5

Related Questions