I'm following this turorial to add option menu to my app. I would hide one of the items when an action is performed. For example if the user does the login, then i want to hide the login item... How to select it for setting not visibile?
@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case R.id.Login:
clickLogin();
case R.id.BugReport:
clickBugReport();
case R.id.About:
clickAbout();
case R.id.Credits:
clickCredits();
default:
return super.onOptionsItemSelected(item);
}
}