setCheckedItem

open fun setCheckedItem(@IdRes id: Int)

Sets the currently checked item in this navigation menu.

Parameters

id

The item ID of the currently checked item.


open fun setCheckedItem(@NonNull checkedItem: MenuItem)

Sets the currently checked item in this navigation menu.

Parameters

checkedItem

The checked item from the menu available from getMenu.