问题
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.
回答1:
Create new context wrapper for dialogs:
Context dialogContext = new ContextThemeWrapper(this, R.style.Holo_Theme);
Dialog dialog = new AlertDialog.Builder(dialogContext).create();
来源:https://stackoverflow.com/questions/15774201/holoeverywhere-dark-action-bars-and-dialogs