title: How can I inflate multiple menus into the options bar?
body: <p>(First off, I am using ActionbarSherlock via HoloEverywhere, although I don't know that this is related to the issue.)</p>
  
  <p>I've got an activity with three fragments.  Each fragment has its own menu items and they all share some menu items.  I have already learned from StackOverflow that it is not permitted to add menu items in the Activity an then add more items in the <code>Fragment</code> (I had tried... it causes weird bugs).  So the <code>Activity</code> doesn't have a menu but each fragment does.  However, I'm still trying to avoid duplicating the menu entries in each fragment's menu xml.  To do this, I have one xml menu for each fragment and one xml menu that they all share.  For example, I have:</p>
  
  <pre><code>fragment_1_menu.xml
  fragment_2_menu.xml 
  all_fragments_menu.xml
  </code></pre>
  
  <p>and, in <code>Fragment1</code> I am trying to import both <code>fragment_1_menu.xml</code> and <code>all_fragments_menu.xml</code>:</p>
  
  <pre><code>public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
    inflater.inflate(R.menu.all_fragments_menu, menu);
    inflater.inflate(R.menu.fragment_1_menu, menu);
    super.onCreateOptionsMenu(menu, inflater);
  }
  </code></pre>
  
  <p>When I do this, it <em>almost</em> works, but, in my case, one of the menu items from <code>all_fragments_menu</code> is missing.  I don't mean its a blank hole in the menu... I mean its not represented in the menu at all.  The XML IDs are unique and map to different int's in the R.java.  It looks like it <em>should</em> work.  I do the same thing with <code>Fragment2</code> except that <code>fragment_2_menu.xml</code> has no items and, in that case, all menu items appear as expected.  </p>
  
  <p>Should this work?  Am I just missing something?</p>