menu in action bar
<p>I am making a action bar with 3 menus and their respective drop down submenu items.This is the code:</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;menu&gt;
        &lt;item
            android:id="@+id/item_refresh"
            android:title="beginner"
            android:showAsAction="ifRoom|withText" /&gt;   
           &lt;/menu&gt;
         &lt;menu&gt;
        &lt;item
            android:id="@+id/item_save"
           android:title="expert"
            android:showAsAction="ifRoom|withText" /&gt;
        &lt;/menu&gt;
    &lt;/menu&gt;
</code></pre>

<p>Please tell me how to add the submenus and how to perform a action on their click.Thanks in advance.</p>
