Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

changing theme of android dialog

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. enter image description here

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

like image 525
Samantha Withanage Avatar asked Mar 21 '23 04:03

Samantha Withanage


1 Answers

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);
like image 182
kalyan pvs Avatar answered Apr 01 '23 22:04

kalyan pvs