ListView in AlertDialog

前端 未结 3 592
傲寒
傲寒 2020-11-30 06:09

I am using a ListView in an AlertDialog to display a list of items. When the user clicks on one of the items, I want the dialog to close. I would not have any action buttons

3条回答
  •  南方客
    南方客 (楼主)
    2020-11-30 06:31

    You can use a layout when popping an alert dialog.. It is easier to style it that way imo. For list in alert dialog you can do something like this

提交回复
热议问题