androidandroid-actionbaractionbarsherlockshareactionprovider

How to hide the share action (which use most) icon near the share action provider?


See the picture. How can i hide the icon "P" which means share to Pinterest?

enter image description here

They are both on the action bar and I use ActionBarSherlock.


Solution

  • If you wish to keep all the share history data model, but just don't want the extra "default share activity" icom. The answer at How do you turn off share history when using ShareActionProvider? is not good enough.

    What you should do is:

    Edit: Don't forget to set the new ActionProvider to your menu item, from XML it would look like: android:actionProviderClass="com.*.CustomShareActionProvider"

    That's it!