mxc*_*xch 3 android styles dialog android-holo-everywhere
我正在使用HoloEverywhere库,我需要动作栏和对话框(ProgressDialog和AlertDialog)使用Holo Dark主题设置样式,其余控件使用Holo Light.
我将应用程序主题设置为Holo.Theme.Light.DarkActionBar(这是我到目前为止所需要的最接近的)但是我得到了Light对话框.
我怎样才能做到这一点?
提前致谢.
小智 7
为对话框创建新的上下文包装器:
Context dialogContext = new ContextThemeWrapper(this, R.style.Holo_Theme);
Dialog dialog = new AlertDialog.Builder(dialogContext).create();
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
852 次 |
| 最近记录: |