When using androidx.appcompat.widget.Toolbar
then execute ToolbarUtils.getActionMenuView(toolbar).setExpandedActionViewsExclusive(false);
after inflating the menu in onCreateOptionsMenu
, this seems to resolve most issues with an expandActionView
call. The workaround use library restricted features, so they may be removed at any time.