MenuCompat

class MenuCompat
kotlin.Any
   ↳ androidx.core.view.MenuCompat

Helper for accessing features in android.view.Menu.

Summary

Public methods
static Unit
setShowAsAction(item: MenuItem!, actionEnum: Int)

Call MenuItem.setShowAsAction().

static Unit
setGroupDividerEnabled(menu: Menu!, enabled: Boolean)

Enable or disable the group dividers.

Public methods

setShowAsAction

static fun setShowAsAction(item: MenuItem!, actionEnum: Int): Unit

Call MenuItem.setShowAsAction().

setGroupDividerEnabled

static fun setGroupDividerEnabled(menu: Menu!, enabled: Boolean): Unit

Enable or disable the group dividers.

Parameters
menu Menu!: Menu to enable/disable dividers on.
enabled Menu!: True if enabled