Android: create a popup that has multiple selection options

前端 未结 4 968
半阙折子戏
半阙折子戏 2020-12-04 11:33

I\'ve been searching around trying to figure out how to create a popup or a dialog that has 4 options to choose from.

I see this picture on the Android developer sit

4条回答
  •  [愿得一人]
    2020-12-04 12:32

    The pop ups are nothing but AlertDialog.So you just need to create AlertDialog, then inflate your desired view using LayoutInflater and set the inflated view using setView() method of AlertDialog

提交回复
热议问题