Skip to content

Instantly share code, notes, and snippets.

@AndriyBas
Created November 24, 2016 21:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndriyBas/bd04600062f86eafc31bc412ae86883c to your computer and use it in GitHub Desktop.
Save AndriyBas/bd04600062f86eafc31bc412ae86883c to your computer and use it in GitHub Desktop.
Window window = dialog.getWindow();
if (window != null) {
// remove background
window.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
window.setLayout(WindowManager.LayoutParams.MATCH_PARENT, WindowManager.LayoutParams.MATCH_PARENT);
// remove dim
WindowManager.LayoutParams windowParams = window.getAttributes();
window.setDimAmount(0.0F);
window.setAttributes(windowParams);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment