机器人对话的主题不定 [英] changing theme of android dialog

查看:131
本文介绍了机器人对话的主题不定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的 Android应用程序我已经设置了主题应用程序为

In my Android application I have set the theme of the app as

安卓Theme.Holo.Light

android:Theme.Holo.Light

我创建的对话框,

final Dialog dialog = new Dialog(DropPicupProcess.this);

但是,当我弹出一个DialogBox的在应用程序中它显示如下。

But when I pop up an dialogbox in the app it shows as below.

我怎样才能改变对话框的主题为机器人:Theme.Holo.Light

How can I change the theme of the dialog into android:Theme.Holo.Light.

推荐答案

取而代之的是

final Dialog dialog = new Dialog(DropPicupProcess.this);

创建对话框这样的..

Create your dialog like this..

Dialog dialog=new Dialog(DropPicupProcess.this,android.R.style.Theme_Holo_Light);

这篇关于机器人对话的主题不定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆