Dismiss a custom dialog?

后端 未结 4 1367
独厮守ぢ
独厮守ぢ 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:43

    I think a better way may be to call

    dismissDialog(DIALOG_ID);
    

    Wouldn't making the AlertDialog a class property defeat the purpose of returning a Dialog from the onCreateDialog()?

提交回复
热议问题