Android AlertDialog background color programmatically code example
Example: change the background color of alert dialog box kotlin android
mDialog.getWindow()?.setBackgroundDrawable(ColorDrawable(Color.WHITE))
mDialog.getWindow()?.setBackgroundDrawable(ColorDrawable(Color.WHITE))