I created a menu
with buttons to save, to go back and to add, and I would like that when I clicked on add it was hidden or that it is disabled. I tried to use MenuItem item = menu.findItem(R.id.my_item);
that I saw in this topic but it is marked with a red scratch below the line and the unreachable statement
message is displayed when you mouse over. any hint how can I hide the item in the menu?