本文介紹了如何關閉 AlertDialog.Builder?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
在下面的代碼中,如何關閉警報框?我不想造成內存泄漏.我在alertDialog上嘗試了.dismiss(),但是沒有用...謝謝
In the following code below, how do I dismiss the alert box? I don't want to cause a memory leak. I tried the .dismiss() on alertDialog, but that didn't work... Thanks
推薦答案
dismiss() 有什么問題?
What didn't work about dismiss()?
您應該可以使用 Dialog.dismiss(),或 Dialog.cancel()
You should be able to use either Dialog.dismiss(), or Dialog.cancel()
這篇關于如何關閉 AlertDialog.Builder?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯(lián)網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯(lián)系我們刪除處理,感謝您的支持!