title: Android edittext change popup context menu style
body: <p>I want to change <code>EditText</code> popup context menu background when long click the <code>EditText</code>.</p>
  
  <p>I have tried the following code, but it doesn't work. The popup context menu background still not changed.</p>
  
  <pre><code>&lt;style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"&gt;
      &lt;!-- Customize your theme here. --&gt;
      &lt;item name="colorPrimary"&gt;@color/colorPrimary&lt;/item&gt;
      &lt;item name="colorPrimaryDark"&gt;@color/colorPrimaryDark&lt;/item&gt;
      &lt;item name="colorAccent"&gt;@color/colorAccent&lt;/item&gt;
      &lt;item name="dialogTheme"&gt;@style/MyDialogTheme&lt;/item&gt;
      &lt;item name="popupMenuStyle"&gt;@style/MyPopupStyle&lt;/item&gt;
  &lt;/style&gt;
  
  &lt;style name="MyPopupStyle" parent="Widget.AppCompat.PopupMenu"&gt;
      &lt;item name="android:popupBackground"&gt;@color/colorAccent&lt;/item&gt;
  &lt;/style&gt;
  
  &lt;style name="MyDialogTheme" parent="Base.V7.Theme.AppCompat.Dialog"&gt;
      &lt;item name="android:colorBackground"&gt;@color/colorAccent&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>The result I want is, popup context menu background is the same as accent color which is magenta. How can I achieve it?</p>
  
  <p><a href="https://i.stack.imgur.com/eESh1.png" rel="noreferrer"><img src="https://i.stack.imgur.com/eESh1.png" alt="enter image description here"></a></p>