android - Enable and Disable MenuItem on Navigation Drawer Activity Layout
Use below code
navigationView.getMenu().findItem(R.id.your_item_id).setEnabled(false);
More details is here
You can access menu from NavigationView.getMenu()
Below is code :
NavigationView navigationView= findViewById(R.id.nav_id_in_layout)
Menu menuNav=navigationView.getMenu();
MenuItem nav_item2 = menuNav.findItem(R.id.nav_item2);
nav_item2.setEnabled(false)