SyntaxFix
Write A Post
Hire A Developer
Questions
Try this:
MenuItem myitem = menu.findItem(R.id.my_item); myitem.setVisible(false);