title: AppCompat ToolBar popupTheme not used in the ShareAction MenuItem
body: <p><strong>Context</strong></p>
  
  <p>Using the AppCompat v7 21.0.0 / 21.0.2 / 21.0.3</p>
  
  <p><strong>Problem</strong></p>
  
  <p>The popupTheme of the ToolBar is not applied to the ShareAction</p>
  
  <p>Style on the toolbar:</p>
  
  <pre><code>&lt;style name="MyActionBarStyle" parent="Widget.AppCompat.Toolbar"&gt;
      &lt;item name="android:background"&gt;@color/green&lt;/item&gt;
      &lt;item name="popupTheme"&gt;@style/ThemeOverlay.AppCompat.Light&lt;/item&gt;
      &lt;item name="theme"&gt;@style/ThemeOverlay.AppCompat.Dark.ActionBar&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>The overflow menu item is using the popupTheme properly</p>
  
  <p><img src="https://i.stack.imgur.com/n7tl9.png" alt="Overflow Item"></p>
  
  <p>The ShareAction on the other hand does not receive the popupTheme. After some testing I noticed it received the app:theme of the ToolBar thus being dark.</p>
  
  <pre><code>&lt;item name="android:colorBackground"&gt;@color/white&lt;/item&gt;
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/s8gsA.png" alt="ShareAction Menu Item"></p>
  
  <p>In order to get the black text on the ShareAction I tried setting many attributes and by setting "android:textColorPrimary" (on the ToolBar theme) I get what I want BUT then my icons on the ToolBar also takes this color which is weird...</p>
  
  <p>The menu xml is the following:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  
  &lt;menu xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:cycle="http://schemas.android.com/apk/res-auto"&gt;
  
      &lt;item
          android:id="@+id/ic_share"
          android:icon="@drawable/abc_ic_menu_share_holo_dark"
          android:title="@string/media_share"
          cycle:showAsAction="ifRoom"
          cycle:actionProviderClass="android.support.v7.widget.ShareActionProvider" /&gt;
      &lt;item
          android:icon="@drawable/abc_ic_menu_share_holo_dark"
          android:showAsAction="ifRoom"
          android:title="br"&gt;
          &lt;menu&gt;
              &lt;item
                  android:id="@+id/menuSortNewest"
                  android:title="Sort by newest" /&gt;
              &lt;item
                  android:id="@+id/menuSortRating"
                  android:title="Sort by rating" /&gt;
          &lt;/menu&gt;
      &lt;/item&gt;
  
  &lt;/menu&gt;
  </code></pre>
  
  <p>I would expect both the ShareAction &amp; the overflow to have the popupTheme but it's not the case</p>
  
  <p><strong>Workaround</strong></p>
  
  <p>I'll edit this post once I got a workaround</p>
  
  <p>Ref: <a href="https://code.google.com/p/android/issues/detail?id=87285&amp;thanks=87285&amp;ts=1419254842" rel="noreferrer">https://code.google.com/p/android/issues/detail?id=87285&amp;thanks=87285&amp;ts=1419254842</a></p>