0

I have implement the ShareActionProvider in my Android Application. This work fine, but i want to delete the icon of the last item that used, at the right of the button, like this :

enter image description here

This is my configuration :

Menu :

 <item
    android:id="@+id/menu_item_share"
    android:actionProviderClass="android.widget.MyShareActionProvider"
    android:showAsAction="always"
    android:title="Partager"/>

Activity :

    MenuItem item = menu.findItem(R.id.menu_item_share);

    mShareActionProvider = (ShareActionProvider) item.getActionProvider();

    if (mShareActionProvider != null) {
        mShareActionProvider.setShareIntent(mShareIntent);
    }

Do you have any idea ? Thanks

Tom59
  • 125
  • 3
  • 14

0 Answers0