How to remove the dark shadow of the screen when a Dialog is shown?
-
11-02-2021 - |
Question
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 ?
Solution
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.
OTHER TIPS
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/
just add below code on your dialog: dialog.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);