Im using Theme.Holo.Light.DarkActionBar but I dont really like the Light Dialogs/AlertDialogs.
I want to change every Dialog to the dark Holo Dialog.
<style name="CustomDialogTheme" parent="@android:style/Theme.Holo.Dialog">
<item name="@android:background">#9933CC</item>
<item name="@android:textColor">#02FA07</item>
</style>
<style name="Holo.Light.DarkActionBar" parent="@android:style/Theme.Holo.Light.DarkActionBar">
<item name="android:dialogTheme">@style/CustomDialogTheme</item>
<item name="android:alertDialogStyle">@style/CustomDialogTheme</item>
</style>
Thats what I tried but it has no effect on any Dialogs.
In AndroidManifest.xml under the application tag, add this line :
The issue is that the styles you're changing
android:background
andandroid:textColor
are not dialog attributes.You can see a full list here under
Theme.Holo.Dialog
on line 1617.The ones you have to change are probably
android:windowBackground
andtextAppearance
Ok nvm Im stupid its
android:alertDialogTheme
instead ofandroid:alertDialogStyle
. But this messes up the Preference Dialogs, so I just keep using the Light Dialogs.