3

I'm using HoloEverywhere library, I need action bars and dialogs (ProgressDialog and AlertDialog) to be styled with the Holo Dark theme and the rest of the controls with the Holo Light.

I set the application theme to Holo.Theme.Light.DarkActionBar (this is the closest to what I need so far) but with this I get Light dialogs.

How can I achieve this?

Thanks in advance.

mxch
  • 835
  • 2
  • 10
  • 20

1 Answers1

7

Create new context wrapper for dialogs:

Context dialogContext = new ContextThemeWrapper(this, R.style.Holo_Theme);
Dialog dialog = new AlertDialog.Builder(dialogContext).create();
Prototik
  • 935
  • 4
  • 7