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 ?
Asked
Active
Viewed 299 times
0
bharath
- 14,283
- 16
- 57
- 95
3 Answers
1
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/
Mun0n
- 4,438
- 4
- 28
- 46
-
It's not the background of the Dialog which I am talking about ! It's the background color of the Form which is hidden by the Dialog ! Anyway I found the solution : I set the Form's `tintColor` before showing the Dialog. – Oct 25 '11 at 12:14
-
I know that is not the background of the `Dialog`. The background showed under the `Dialog` have the `Form` style. If you had used the resource editor you would have seen it. – Mun0n Oct 25 '11 at 12:43
0
just add below code on your dialog: dialog.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);
xlwplm
- 36
- 1
0
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.
Shai Almog
- 51,749
- 5
- 35
- 65