Reputation:
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
Reputation: 36
just add below code on your dialog: dialog.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);
Upvotes: 0
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
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