custom xml AlertDialog android code example
Example: android custom AlertDialog theme
val builder: AlertDialog.Builder = AlertDialog.Builder(ContextThemeWrapper(this, R.style.AlertDialogTheme))
<!-- AlertDialog Style-->
<style name="AlertDialogTheme">
<item name="android:background">@drawable/dialog_background</item>
</style>