title: How to avoid application theme / style to be applied on AlertDialog and Dialog (especially Buttons)?
body: <p>I've defined an application level style :</p>
  
  <pre><code>&lt;style name="MyApplicationStyle" parent="@android:style/Theme.Black"&gt;
      &lt;item name="android:textColor"&gt;#FFFFFF&lt;/item&gt;
      &lt;item name="android:shadowColor"&gt;#000000&lt;/item&gt;
      &lt;item name="android:shadowDy"&gt;2&lt;/item&gt;
      &lt;item name="android:shadowRadius"&gt;1.5&lt;/item&gt;
  
      &lt;item name="android:buttonStyle"&gt;@style/MyButton&lt;/item&gt;
      &lt;item name="android:editTextStyle"&gt;@style/MyEditText&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>This style is applied to my application through thea activity node in the Manifest.xml:</p>
  
  <pre><code>android:theme="@style/MyApplicationStyle"
  </code></pre>
  
  <p>My problem is that this theme is applied everywhere, even in my AlertDialog and Dialogs. Only some features are applied in these Dialogs : the shadow for example are applied on the button and the text. I let you imagine how hard it would be to implement a new Dialog class with all the required features or to set to each Button the right style. Thus the proposed solution here : <a href="https://stackoverflow.com/q/2524051/172277">Button style in AlertDialogs</a> is not really suitable</p>
  
  <p>Is there any workaround to avoid the button style to be applied in the Dialog or to manually set a style to the Dialog (using a ContextThemeWrapper doesn't work) ?</p>