I've defined an application level style :
<style name="MyApplicationStyle" parent="@android:style/Theme.Black">
<item name="android:textColor">#FFFFFF</item>
<item name="android:shadowColor">#000000</item>
<item name="android:shadowDy">2</item>
<item name="android:shadowRadius">1.5</item>
<item name="android:buttonStyle">@style/MyButton</item>
<item name="android:editTextStyle">@style/MyEditText</item>
</style>
This style is applied to my application through thea activity node in the Manifest.xml:
android:theme="@style/MyApplicationStyle"
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 : Button style in AlertDialogs is not really suitable
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) ?