亲宝软件园·资讯

展开

android progressdialog Android中ProgressDialog的dismiss()与cancel()方法的区别

qq_20252351 人气:0
想了解Android中ProgressDialog的dismiss()与cancel()方法的区别的相关内容吗,qq_20252351在本文为您仔细讲解android progressdialog的相关知识和一些Code实例,欢迎阅读和指正,我们先划重点:android,progressdialog,下面大家一起来学习吧。

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 ()。

以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,同时也希望多多支持!

加载全部内容

相关教程
猜你喜欢
用户评论