Dismiss a custom dialog?

后端 未结 4 1374
独厮守ぢ
独厮守ぢ 2020-12-11 03:43

I\'m trying to make a custom dialog to show a view in this dialog. This is the Builder code:

//Getting the layout
LayoutInflater inflater = (LayoutInflater)          


        
4条回答
  •  情话喂你
    2020-12-11 03:54

    Use AlertDialog instance e.g. mAlertDialog as a global variable. And call mAlertDialog.dismiss(); inside onClick()

提交回复
热议问题