Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public override bool OnCreateOptionsMenu(IMenu menu)
- {
- MenuInflater.Inflate(Resource.Menu.main, menu);
- return base.OnCreateOptionsMenu(menu);
- }
- public virtual bool OnOptionsItemSelected (IMenuItem item)
- {
- string test;
- Console.WriteLine ("Test");
- return true;
- }
- public virtual bool OnMenuItemSelected (int featureId, IMenuItem item)
- {
- string test;
- Console.WriteLine ("Test");
- return true;
- }
- public void OnGroupItemClick( IMenuItem item) {
- // One of the group items (using the onClick attribute) was clicked
- // The item parameter passed here indicates which item it is
- // All other menu item clicks are handled by onOptionsItemSelected()
- int i = 0;
- string test;
- Console.WriteLine ("Test");
- test = item.MenuInfo.ToString ();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement