setOnMenuItemClickListener

Sets a listener for menu item clicks on the toolbar. Calling this method will replace any previously set listener. You may provide null to clear the listener.

Parameters

listener

OnMenuItemClickListener that should be notified, or null to clear the listener.