PopupToolbarMenuItem

constructor(@IdRes id: Int, @StringRes title: Int)

Creates a menu item with given id and title. This item is enabled by default.

Parameters

id

The menu item id.

title

The menu item title string resource.


constructor(id: Int, title: Int, isEnabled: Boolean)

Creates a menu item with given id and title.

Parameters

id

The menu item id.

title

The menu item title string resource.

isEnabled

true to make the menu item enabled, false to disable it.