Created
October 1, 2018 09:07
-
-
Save Audhil/6b572f55fff10c063558f2c0a03670f8 to your computer and use it in GitHub Desktop.
Making more Darker dialog background than default - works in DialogFragment too
This file contains hidden or 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
val lp = dialog?.window?.attributes | |
lp?.dimAmount = .8f | |
dialog?.window?.attributes = lp | |
dialog?.window?.addFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment