title: Android: How to include a menu xml inside another menu xml?
body: <p>Simple question. </p>
  
  <p>I have my menu of child items: </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;menu xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  
      &lt;item
          android:id="@+id/fp_pitcher"
          android:title="Pitcher"&gt;
      &lt;/item&gt;
      &lt;item
          android:id="@+id/fp_catcher"
          android:title="Catcher"&gt;
      &lt;/item&gt;
  &lt;!-- SNIP ---&gt; 
  &lt;/menu&gt;
  </code></pre>
  
  <p>And later I would want to include it as a submenu of this menu: </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;menu xmlns:android="http://schemas.android.com/apk/res/android" &gt;
  
  
      &lt;item
          android:id="@+id/teameditor_remove"
          android:title="Remove Player from Team"&gt;
      &lt;/item&gt;
  
      &lt;item
          android:id="@+id/teameditor_assignbattingposition"
          android:title="Assign Batting Position"&gt;
      &lt;/item&gt;
  
      &lt;item
          android:id="@+id/teameditor_assignfieldingposition"
          android:title="Assign Feilding Position"&gt;
          &lt;!-- I want to include the submenu here--&gt;
      &lt;/item&gt;
  
  &lt;/menu&gt;
  </code></pre>
  
  <p><a href="https://stackoverflow.com/questions/4337034/include-menu-in-menu-android">The question here</a> kind of answered this - I'm not sure how to inflate the submenu. </p>
  
  <p>I'm thinking that you inflate it in the onContextItemSelected method - but inflate requires a menu object, which isn't passed into onContextItemSelected. </p>