HoloEverywhere: dark panels and dialogs

I use the HoloEverywhere library, I need action panels and dialogs (ProgressDialog and AlertDialog) to be stylized with the Holo Theme theme, and the rest of the controls with Holo Light.

I installed the application theme in 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.

+3
source share
1 answer

Create a new context wrapper for dialogs:

Context dialogContext = new ContextThemeWrapper(this, R.style.Holo_Theme); Dialog dialog = new AlertDialog.Builder(dialogContext).create(); 
+7
source

Source: https://habr.com/ru/post/1481207/


All Articles