title: Android create custom overflow menu item
body: <p>I want to create a custom overflow menu item in my ActionBar in addition at the Setting item like described in the image below:</p>
  
  <p><img src="https://i.stack.imgur.com/cQbv6.png" alt="Action bar"></p>
  
  <p>But if there is few space in the ActionBar I don't want that the Item1 and Item2 go into the Setting item as overflow, but into "my overflow item".</p>
  
  <p>this is my menu xml code:</p>
  
  <pre><code>&lt;menu xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  &lt;item
      android:icon="@android:drawable/ic_menu_agenda"  
      android:title="Item1"
      android:showAsAction="ifRoom|withText" /&gt;
  
  &lt;item
      android:icon="@android:drawable/ic_menu_add"  
      android:title="Item2"
      android:showAsAction="ifRoom|withText" /&gt;
  
  &lt;item android:id="@+id/pick_action_provider"
      android:icon="@android:drawable/ic_menu_sort_by_size" 
      android:showAsAction="always"
      android:title="Overflow" &gt;
       &lt;menu&gt;  
          &lt;item android:id="@+id/action_sort_size"  
                android:icon="@android:drawable/ic_menu_camera"  
                android:title="Item3" /&gt;  
          &lt;item android:id="@+id/action_sort_alpha"  
                android:icon="@android:drawable/ic_menu_sort_alphabetically"  
                android:title="Item4" /&gt;  
      &lt;/menu&gt;  
  &lt;/item&gt;
  
  &lt;item
      android:id="@+id/action_settings"
      android:orderInCategory="100"
      android:showAsAction="never"
      android:title="@string/action_settings"/&gt;&lt;/menu&gt;
  </code></pre>