时间:2022-01-05 10:06:43 | 栏目:Android代码 | 点击:次
progressDialog, 它有两个方法dialog.cancel() 和 dialog.dimiss()
1. public void cancel ()
Since: API Level 1 Cancel 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 1 Dismiss 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 ()。