Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. public override bool OnCreateOptionsMenu(IMenu menu)
  2. {
  3. MenuInflater.Inflate(Resource.Menu.main, menu);
  4. return base.OnCreateOptionsMenu(menu);
  5. }
  6.  
  7. public virtual bool OnOptionsItemSelected (IMenuItem item)
  8. {
  9. string test;
  10. Console.WriteLine ("Test");
  11. return true;
  12. }
  13.  
  14. public virtual bool OnMenuItemSelected (int featureId, IMenuItem item)
  15. {
  16. string test;
  17. Console.WriteLine ("Test");
  18. return true;
  19. }
  20.  
  21. public void OnGroupItemClick( IMenuItem item) {
  22. // One of the group items (using the onClick attribute) was clicked
  23. // The item parameter passed here indicates which item it is
  24. // All other menu item clicks are handled by onOptionsItemSelected()
  25. int i = 0;
  26. string test;
  27. Console.WriteLine ("Test");
  28.  
  29. test = item.MenuInfo.ToString ();
  30.  
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement