I have use SherlockActionBar library in my application ,now i want to change icon of ActionMode . Below is screen show in which i have high lighted my ActionMode in which i want to set my own icon.
Please help me to change icon in ActionMode.
You set this in the style resource like so
/res/values-v11/styles.xml
<style name="Theme.YourTheme" parent="Theme.Sherlock">
<item name="android:actionModeCloseDrawable">@android:drawable/your_drawable</item>
</style>
/res/values/styles.xml
<style name="Theme.YourTheme" parent="Theme.Sherlock">
<item name="actionModeCloseDrawable">@android:drawable/your_drawable</item>
</style>
Note the missing android namespace before actionModeCloseDrawable for API < 11 style
Obviously the theme will be different if you are not using actionbarsherlock
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With