title: How do I implement the onCreateOptionsMenu method in a SherlockFragment?
body: <p>I am really struggling to set up the <code>onCreateOptionsMenu</code> method in my Sherlock Fragment, as I usually don't use Sherlock fragments that much. Can someone tell what I have to import and how the implementation works? </p>
  
  <p>Some code that I have:</p>
  
  <pre><code>public class MyFragment extends SherlockFragment {
  
      @Override
      public View onCreateView(LayoutInflater inflater, ViewGroup container,
              Bundle savedInstanceState) {        
  
          View rootView = inflater.inflate(R.layout.custom_list, container, false);
  
          // SOME CODE ...
  
          return rootView;
      }   
  
      @Override
      public boolean onCreateOptionsMenu(Menu menu) {
         // ???
      }
  }
  </code></pre>