I defined a menu item that has ShareActionProvider and share white icon like so :
-
This behaviour is expected, as the ShareActionProvider
is
responsible for creating views that enable data sharing and also to show a sub menu with sharing activities if the hosting item is placed on the overflow menu.
according to the documentation.
This means that you don't have control over the customization of the view when using it.