class BusyDialogFragment: DialogFragment() { override fun onStart() { super.onStart() // remove black outer overlay, or change opacity dialog?.window?.also { window -> window.attributes?.also { attributes -> attributes.dimAmount = 0.1f window.attributes = attributes } } }}
NOTE: To make the white background transparent, refer to Set Dialog Background Transparent