I have a navigation drawer. When an event is called, I want to hide one of my navigation menu item for user. How can I do that?
protected void onCreate(Bundle sa
Kotlin version
val navigationView: NavigationView = findViewById(R.id.nav_view) as NavigationView val nav_Menu: Menu = navigationView.getMenu() nav_Menu.findItem(R.id.nav_stock).setVisible(false)