code: @Override
      public boolean onCreateOptionsMenu(Menu menu) {
          //Used to put dark icons on light action bar
          boolean isLight = SampleList.THEME == R.style.Theme_Sherlock_Light;
  
          menu.add("Save")
              .setIcon(isLight ? R.drawable.ic_compose_inverse : R.drawable.ic_compose)
              .setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM | MenuItem.SHOW_AS_ACTION_WITH_TEXT);
  
          menu.add("Search")
              .setIcon(isLight ? R.drawable.ic_search_inverse : R.drawable.ic_search)
              .setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM | MenuItem.SHOW_AS_ACTION_WITH_TEXT);
  
          menu.add("Refresh")
              .setIcon(isLight ? R.drawable.ic_refresh_inverse : R.drawable.ic_refresh)
              .setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM | MenuItem.SHOW_AS_ACTION_WITH_TEXT);
  
          return true;
      }
docs: /*
  In order to receive these events you need to implement an interface
  from ActionBarSherlock so it knows to dispatch to this callback.
  There are three possible interface you can implement, one for each
  menu event.
  
  Remember, there are no superclass implementations of these methods so
  you must return a value with meaning.