0

I have tried to use a content wrapper:

ContextThemeWrapper wrapper = new ContextThemeWrapper(this, android.R.style.Theme_Holo_Dialog);
AlertDialog.Builder builder = new AlertDialog.Builder(wrapper);

The result of this, is a dialog box of a mix of both dark and white, horrible.

I have also tried using customized styles and etc in the past 2 hours, no luck. I believe the solution must be very simple, I just need to trick the AlertDialog Builder to think my activity is Holo dark themed. But how?

enter image description here

This is how I themed my activity, maybe I did something wrong there:

<style name="ThemeSolarizedLight" parent="android:Theme.Holo.Light">
    <item name="android:background">@color/light_yellow</item>
    <item name="android:textColor">that No Wi-fi color you see up there</item>
</style>
WSBT
  • 25,227
  • 14
  • 101
  • 116

1 Answers1

0

You are using the actionbar's theme instead use the theme made for dialog

sample:

ContextThemeWrapper wrapper = new ContextThemeWrapper(this, android.R.style.Theme_Holo_Dialog;);
Rod_Algonquin
  • 25,781
  • 6
  • 51
  • 63