HoloEverywhere: Dark action bars and dialogs

2019-04-12 09:00发布

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条回答
小情绪 Triste *
2楼-- · 2019-04-12 09:37

Create new context wrapper for dialogs:

Context dialogContext = new ContextThemeWrapper(this, R.style.Holo_Theme);
Dialog dialog = new AlertDialog.Builder(dialogContext).create();
查看更多
登录 后发表回答