How do I remove the black background from a dialog box in Android. The pic shows the problem.
final Dialog dialog = new Dialog(Screen1.this);
dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
dialog.setContentView(R.layout.themechanger);
How do I remove the black background from a dialog box in Android. The pic shows the problem.
final Dialog dialog = new Dialog(Screen1.this);
dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
dialog.setContentView(R.layout.themechanger);
For anyone using a custom dialog with a custom class you need to change the transparency in the class add this line in the onCreate():
I've faced the simpler problem and the solution i came up with was applying a transparent bachground THEME. Write these lines in your styles
And then add
in your main manifest file , inside the block of the dialog activity.
Plus in your dialog activity XML set
Dialog pop up fill default black background color or theme color so you need to set
TRANSPARENT
background into Dialog. Try below code:-Try this in your code:
it will definately working...in my case...! my frend
this is my way, you can try!
use in java
I hope help you !