title: How to make the overflow popup menu avoid obstructing the action bar?
body: <h2>Background</h2>
  
  <p>On <a href="https://play.google.com/store/apps/details?id=com.lb.app_manager" rel="nofollow noreferrer"><strong>my app</strong></a>, when I've updated to the new support library and also tried on Lollipop, I've noticed a weird issue: when clicking on the overflow button of the action bar (or even the new <a href="http://developer.android.com/reference/android/widget/Toolbar.html" rel="nofollow noreferrer"><strong>Toolbar</strong></a> class) will show the popup menu on top of the action bar, hiding other action items, as such:</p>
  
  <p><img src="https://i.stack.imgur.com/RLWpy.png" width="300"></p>
  
  <p>Here, the action items that got hidden are uninstallation and sharing.</p>
  
  <h2>The problem</h2>
  
  <p>I've tried to avoid this issue, by ovverriding the style of the overflow menu, but nothing has helped.</p>
  
  <p>Not only that, but it seems this is <a href="http://www.google.com/design/spec/layout/structure.html#structure-toolbars" rel="nofollow noreferrer"><strong>an intentional behavior</strong></a>, yet in many Google apps that were updated to have Material design, this behavior doesn't hold, as I've reported <a href="https://code.google.com/p/android-developer-preview/issues/detail?id=1951" rel="nofollow noreferrer"><strong>here</strong></a>.</p>
  
  <h2>What I've tried</h2>
  
  <p>I've tried creating this in the theme I use . Actually my theme is very different and its parent is "Theme.AppCompat.Light.NoActionBar" (and I use the Toolbar as the actionBar), but this snippet has this issue too, so I think that if one will be solved the other will too.</p>
  
  <p>Anyway, here's the snippet:</p>
  
  <pre><code>&lt;resources xmlns:tools="http://schemas.android.com/tools"&gt;
  
      &lt;style name="AppBaseTheme" parent="Theme.AppCompat.Light"&gt;&lt;/style&gt;
  
      &lt;style name="AppTheme" parent="AppBaseTheme"&gt;
          &lt;item name="android:actionOverflowMenuStyle" tools:targetApi="21"&gt;@style/OverflowMenu&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name="OverflowMenu" parent="@android:style/Widget.Material.PopupMenu.Overflow" tools:targetApi="21"&gt;
          &lt;item name="android:overlapAnchor"&gt;false&lt;/item&gt;
          &lt;item name="android:dropDownVerticalOffset"&gt;50dip&lt;/item&gt;
      &lt;/style&gt;
  
  &lt;/resources&gt;
  </code></pre>
  
  <p>Both attributes didn't change anything.</p>
  
  <p>I've also tried looking for how it works in the support library, but couldn't find it.</p>
  
  <h2>The question</h2>
  
  <p>How do I make the popup menu of the overflow action item to avoid hiding other item?</p>