title: How to change a context menu items color
body: <p>I'm having trouble changing the color of items on context menu bar to white. The bar appears like this-</p>
  <p><a href="https://i.stack.imgur.com/uBYic.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uBYic.png" alt="enter image description here" /></a></p>
  <p>I have an Activity which extends AppCompatActivity. I'm using a Toolbar with <code>Theme.AppCompat.Light.NoActionBar</code> theme. The style.xml looks like this:</p>
  <pre><code>&lt;style name=&quot;AppTheme&quot; parent=&quot;Theme.AppCompat.Light.NoActionBar&quot;&gt;
          &lt;item name=&quot;android:actionBarStyle&quot; tools:ignore=&quot;NewApi&quot;&gt;@style/MyActionBar&lt;/item&gt;
          &lt;item name=&quot;android:windowDrawsSystemBarBackgrounds&quot;&gt;true&lt;/item&gt;
          &lt;item name=&quot;windowActionModeOverlay&quot;&gt;true&lt;/item&gt;
          &lt;item name=&quot;android:windowTranslucentStatus&quot;&gt;true&lt;/item&gt;
          &lt;item name=&quot;actionBarPopupTheme&quot;&gt;@style/ThemeOverlay.AppCompat.Light&lt;/item&gt;
          &lt;item name=&quot;actionModeStyle&quot;&gt;@style/LStyled.ActionMode&lt;/item&gt;
          &lt;item name=&quot;colorPrimary&quot;&gt;@android:color/white&lt;/item&gt;
          &lt;item name=&quot;android:textColorSecondary&quot;&gt;@android:color/white&lt;/item&gt;
          &lt;item name=&quot;android:colorPrimaryDark&quot;&gt;@android:color/white&lt;/item&gt;
          &lt;item name=&quot;colorControlNormal&quot;&gt;@color/edit_text_border&lt;/item&gt;
          &lt;item name=&quot;colorControlActivated&quot;&gt;@color/blue&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name=&quot;LStyled.ActionMode&quot; parent=&quot;@style/Widget.AppCompat.ActionMode&quot;&gt;
          &lt;item name=&quot;background&quot;&gt;@color/blue&lt;/item&gt;
          &lt;item name=&quot;actionMenuTextColor&quot;&gt;@android:color/white&lt;/item&gt;
          &lt;item name=&quot;android:actionBarStyle&quot;&gt;@style/MyActionBar&lt;/item&gt;
      &lt;/style&gt;
  
  &lt;style name=&quot;MyActionBar&quot; parent=&quot;@style/Widget.AppCompat.Light.ActionBar.Solid.Inverse&quot;&gt;
          &lt;item name=&quot;android:background&quot; tools:ignore=&quot;NewApi&quot;&gt;@color/blue&lt;/item&gt;
          &lt;item name=&quot;background&quot;&gt;@color/blue&lt;/item&gt;
          &lt;item name=&quot;android:textColorPrimary&quot;&gt;#fff&lt;/item&gt;
          &lt;item name=&quot;android:textColor&quot;&gt;#fff&lt;/item&gt;
      &lt;/style&gt;
  </code></pre>
  <p>When I switch to context menu, using the following code, the items color changes from white to black-</p>
  <pre><code>MenuInflater inflater = mode.getMenuInflater();
  inflater.inflate(R.menu.lead_list_context_menu, menu);
  </code></pre>
  <p>I've also tried changing theme to <code>Theme.AppCompat.NoActionBar</code> which changes ActionBar color to white but this also changes dialog and menu popup background and text color (Which I don't want).</p>
  <p>Other problem that I have is, with context menu the status bar color changes to black. How can I set status bar color when context menu is enabled.</p>
  <p>Any way I can change the text color and status bar color?</p>