configureItem

inline fun Menu.configureItem(@IdRes id: Int, configure: (MenuItem) -> Unit)

Finds a menu item by id and configures it.

This keeps Menu.findItem lookup close to the configuration block and avoids temporary variables at call sites.