onGetShowAsAction

open fun onGetShowAsAction(menuItemId: Int, defaultShowAsAction: Int): Int

Called to determine how a menu item should be displayed in the action bar. Override to customize the show-as-action behavior for specific menu items.

Return

The show-as-action value to use for the menu item.

Parameters

menuItemId

The ID of the menu item.

defaultShowAsAction

The default show-as-action value.