I have SingleChoiceItems Dialog and I have List not arrayof and I want to convert this List into arrayof
MaterialAlertDialogBuilder(ctx)
.setTitle("Hello")
.setNeutralButton("Cancle") { dialog, which ->
// Respond to neutral button press
}
.setPositiveButton("Ok") { dialog, which ->
// Respond to positive button press
}
// Single-choice items (initialized with checked item)
.setSingleChoiceItems(?, checkedItem) { dialog, which ->
// Respond to item chosen
}
.show()