user806574
user806574

Reputation:

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

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 ?

Upvotes: 0

Views: 313

Answers (3)

xlwplm
xlwplm

Reputation: 36

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

Upvotes: 0

Shai Almog
Shai Almog

Reputation: 52760

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.

Upvotes: 0

Mun0n
Mun0n

Reputation: 4437

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/

Upvotes: 1

Related Questions