ActionBarCompat.ThemeDarkMainActivity.OnOptionsItemSelected C# (CSharp) Method

OnOptionsItemSelected() public method

public OnOptionsItemSelected ( IMenuItem item ) : bool
item IMenuItem
return bool
		public override bool OnOptionsItemSelected(IMenuItem item)
		{
			switch (item.ItemId) {
			case Resource.Id.action_edit:
				Toast.MakeText (this, "You pressed edit action!", ToastLength.Short).Show ();
				break;
			case Resource.Id.action_save:
				Toast.MakeText (this, "You pressed save action!", ToastLength.Short).Show ();
				break;
			}
			return base.OnOptionsItemSelected(item);
		}