Android Jetpack Navigation - Custom Action with Drawer Item
I found a solution:
val navigationView = findViewById<NavigationView>(R.id.nav_view)
val logoutItem = navigationView.menu.findItem(R.id.nav_logout)
logoutItem.setOnMenuItemClickListener {
toast("Log me out")
true
}