Android Dialog, keep dialog open when button is pressed

后端 未结 7 1372
故里飘歌
故里飘歌 2020-11-30 01:59

I would like to keep my dialog open when I press a button. At the moment it\'s closing.

AlertDialog.Builder builder = new AlertDialog.Builder(this);

builder         


        
7条回答
  •  没有蜡笔的小新
    2020-11-30 02:44

    You will probably need to define your own layout and not use the "official" buttons; the behavior you're asking for is not typical of a dialog.

提交回复
热议问题