how to make dialog transparent android
snippet in kotlin

how to make dialog transparent android

user335

this.window?.setBackgroundDrawableResource(android.R.color.transparent)

dialog getWindow().setBackgroundDrawable transparent

user2339

 dialog.getWindow().setBackgroundDrawable(new ColorDrawable(android.graphics.Color.TRANSPARENT));