configureWindowDim

fun configureWindowDim(window: Window?)

Sets the dim (attenuation) of a window (independent of this class).

Invoke this function when a window is to be shown above fo this activity, to ensure that the attenuation of the window to be shown is equal to or greater than the opacity of this activity, since if it is not done, an undesirable visual effect is generated.

For example, for a dialog:
val dialog = MaterialAlertDialogBuilder(this@AboutActivity).setTitle("DEMO").show();
configureWindowDim(dialog.window);

Parameters

window

window to configure the dim of it.