国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 系統 > Android > 正文

Android中ProgressDialog的dismiss()與cancel()方法的區別

2019-12-12 03:12:02
字體:
來源:轉載
供稿:網友

progressDialog, 它有兩個方法dialog.cancel() 和 dialog.dimiss()

1. public void cancel ()

Since: API Level 1Cancel the dialog. This is essentially the same as calling dismiss(), but it will also call your DialogInterface.OnCancelListener (if registered).

2.public void dismiss ()

Since: API Level 1Dismiss this dialog, removing it from the screen. This method can be invoked safely from any thread. Note that you should not override this method to do cleanup when the dialog is dismissed, instead implement that in onStop().

其中,采用cancel()方法會調用DialogInterface.OnCancelListener ()。

以上就是本文的全部內容,希望本文的內容對大家的學習或者工作能帶來一定的幫助,同時也希望多多支持武林網!

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 阿合奇县| 哈巴河县| 四平市| 婺源县| 普安县| 新和县| 东方市| 施甸县| 金川县| 高雄县| 萨迦县| 普格县| 伊春市| 肇东市| 贡山| 银川市| 开远市| 土默特左旗| 岳阳市| 高邮市| 海宁市| 原阳县| 邢台市| 肇庆市| 申扎县| 南江县| 楚雄市| 武穴市| 昭通市| 黄浦区| 双江| 迭部县| 元阳县| 林甸县| 如东县| 团风县| 兴国县| 翼城县| 耒阳市| 大竹县| 河间市|