Android中ProgressDialog的dismiss()与cancel()方法的区别
更新时间:2017年04月02日 19:08:08 作者:qq_20252351
本文主要介绍了Android中ProgressDialog的dismiss()与cancel()方法的区别,具有很好的参考价值。下面跟着小编一起来看下吧
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 ()。
以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,同时也希望多多支持脚本之家!
您可能感兴趣的文章:
- android中ProgressDialog与ProgressBar的使用详解
- 实例详解Android自定义ProgressDialog进度条对话框的实现
- Android自定义ProgressDialog进度等待框
- Android ProgressBar进度条和ProgressDialog进度框的展示DEMO
- Android 自定义ProgressDialog进度条对话框用法详解
- Android编程实现加载等待ProgressDialog的方法
- Android 中通过实现线程更新Progressdialog (对话进度条)
- Android自定义ProgressDialog加载图片
- Android ProgressDialog使用总结
- android自定义ProgressDialog加载效果
- Android开发中ProgressDialog简单用法示例
相关文章
Android UI设计与开发之实现应用程序只启动一次引导界面
这篇文章主要为大家详细介绍了Android UI设计与开发之实现应用程序只启动一次引导界面,具有一定的参考价值,感兴趣的小伙伴们可以参考一下2017-08-08Android中CountDownTimer 实现倒计时功能
本篇文章主要介绍了Android中CountDownTimer 实现倒计时功能,CountDownTimer 是android 自带的一个倒计时类,具有一定的参考价值,感兴趣的小伙伴们可以参考一下2017-05-05
最新评论