示例#1
0
 public override bool OnCreateOptionsMenu(Com.Actionbarsherlock.View.IMenu menu)
 {
     menu.Clear();
     Com.Actionbarsherlock.View.MenuInflater inflater = SupportMenuInflater;
     if (postsViewModel.contextualSelection)
     {
         inflater.Inflate(Resource.Menu.action_bar_selected, menu);
         setActionBarSelected();
     }
     else 
     {
         inflater.Inflate(Resource.Menu.options_menu_action, menu);
         setActionBarIdle();
     }
     return true;
 }