How to remove the dark shadow of the screen when a Dialog is shown?

321 Views Asked by At

When a Dialog is shown then the background of screen is darkened. I want to remove this darkness so that the screen looks like normal. How to achieve that ?

3

There are 3 best solutions below

0
On BEST ANSWER

Set the tint color of the parent form, you can also set this in the look and feel class and within the theme constants in the resource editor.

2
On

When you show a Dialog the background becomes a Form, changing its style you can modify the background of a Dialog. I don´t really know if you can make this Form transparent. I use the LWUIT-Theme creator and modifiying the Form´s style, I can change the background for an image o for one colour.

Try it here! http://lwuit.java.net/

0
On

just add below code on your dialog: dialog.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);