title: Submenu in actionbar shows in dialogue
body: <p>I am using AppCompact theme.
  My application working fine.
  But submenu openes in dialogue below android 3.0</p>
  
  <p>on device android 4.0 and on device android 2.3 </p>
  
  <p><img src="https://i.stack.imgur.com/r22hxm.png" alt="enter image description here"> <img src="https://i.stack.imgur.com/bkxPIm.png" alt="enter image description here"></p>
  
  <p>My code is:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;menu xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:yourapp="http://schemas.android.com/apk/res-auto" &gt;
  
      &lt;!-- Search Widget --&gt;
      &lt;item
          android:id="@+id/action_search"
          android:icon="@drawable/ic_action_search"
          android:title="@string/action_search"
          yourapp:actionViewClass="android.support.v7.widget.SearchView"
          yourapp:showAsAction="ifRoom|collapseActionView"/&gt;
  
  
  
      &lt;!-- Options --&gt;
      &lt;item
          android:id="@+id/overflow_options"
          android:icon="@drawable/ic_action_overflow"
          android:title="@string/action_overflow"
          yourapp:showAsAction="always"&gt;
          &lt;menu&gt;
              &lt;item
                  android:id="@+id/form1"
                  android:icon="@drawable/ic_location"
                  android:title="Profile"
                  yourapp:showAsAction="always"/&gt;
              &lt;item
                  android:id="@+id/form2"
                  android:icon="@drawable/ic_location"
                  android:title="My Video"
                  yourapp:showAsAction="always"/&gt;
              &lt;item
                  android:id="@+id/form3"
                  android:icon="@drawable/ic_location"
                  android:title="Upload Video"
                  yourapp:showAsAction="always"/&gt;
               &lt;item
                  android:id="@+id/form4"
                  android:icon="@drawable/ic_location"
                  android:title="Friends"
                  yourapp:showAsAction="always"/&gt;
  
          &lt;/menu&gt;
      &lt;/item&gt;
  
  
      &lt;!-- Refresh --&gt;
      &lt;item
          android:id="@+id/action_refresh"
          android:icon="@drawable/ic_action_refresh"
          android:title="@string/action_refresh"
          yourapp:showAsAction="always"/&gt;
  
  
      &lt;!-- Help --&gt;
      &lt;item
          android:id="@+id/Login"
          android:icon="@drawable/ic_action_help"
          android:showAsAction="never"
          android:title="@string/action_help"/&gt;
  
      &lt;!-- Setting --&gt;
      &lt;item
          android:id="@+id/Setting"
          android:icon="@drawable/ic_action_help"
          android:showAsAction="never"
          android:title="@string/setting"/&gt;
  
  &lt;/menu&gt;
  </code></pre>
  
  <p>What i am missing ? I want to implement my menu same as in android 4.0.</p>