MenuCompat

Added in 1.1.0

class MenuCompat


Helper for accessing features in Menu.

Summary

Public functions

java-static Unit
setGroupDividerEnabled(menu: Menu, enabled: Boolean)

Enable or disable the group dividers.

java-static Unit
@ReplaceWith(expression = "item.setShowAsAction(actionEnum)")
setShowAsAction(item: MenuItem!, actionEnum: Int)

This function is deprecated.

Use setShowAsAction directly.

Public functions

setGroupDividerEnabled

Added in 1.1.0
java-static fun setGroupDividerEnabled(menu: Menu, enabled: Boolean): Unit

Enable or disable the group dividers.

Parameters
menu: Menu

Menu to enable/disable dividers on.

enabled: Boolean

True if enabled

setShowAsAction

Added in 1.1.0
Deprecated in 1.1.0
@ReplaceWith(expression = "item.setShowAsAction(actionEnum)")
java-static fun setShowAsAction(item: MenuItem!, actionEnum: Int): Unit

Call MenuItem.setShowAsAction().