Created
November 24, 2016 21:28
-
-
Save AndriyBas/bd04600062f86eafc31bc412ae86883c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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