How to set Single Choice Items inside AlertDialog?

前端 未结 2 524
故里飘歌
故里飘歌 2021-02-11 14:42

I haven\'t been able to set a Single Choice list, or a Multiple Choice List inside an AlertDialog.

I tried following the examples but I only get a Dialog with a Title, t

2条回答
  •  执念已碎
    2021-02-11 15:09

    Seems that Buttons, Message and Multiple choice items are mutually exclusive. Try to comment out setMessage(), setPositiveButton() and setNegativeButton(). Didn't check it myself.

提交回复
热议问题