Skip to content

Instantly share code, notes, and snippets.

@Audhil
Created October 1, 2018 09:07
Show Gist options
  • Save Audhil/6b572f55fff10c063558f2c0a03670f8 to your computer and use it in GitHub Desktop.
Save Audhil/6b572f55fff10c063558f2c0a03670f8 to your computer and use it in GitHub Desktop.
Making more Darker dialog background than default - works in DialogFragment too
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