In my Android application I have set the theme of the app as
android:Theme.Holo.Light
I created the dialog as
final Dialog dialog = new Dialog(DropPicupProcess.this);
But when I pop up an dialogbox in the app it shows as below.
How can I change the theme of the dialog into android:Theme.Holo.Light.
Instead of this
final Dialog dialog = new Dialog(DropPicupProcess.this);
Create your dialog like this..
Dialog dialog=new Dialog(DropPicupProcess.this,android.R.style.Theme_Holo_Light);
you can try this
Dialog dialog=new Dialog(DropPicupProcess.this,new ContextThemeWrapper(this,android.R.style.Theme_Holo_Light));
来源:https://stackoverflow.com/questions/20796049/changing-theme-of-android-dialog