本文介绍了ProgressDialog 现已弃用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Android O 现已弃用进度对话框.解决这个问题的方法是什么?
The Progress Dialog is deprecated now for android O. What is the solution for this?
我收到的警告低于警告.在我的项目中
I am getting below warnings . In My project
Warning:(6, 20) 'Progress Dialog' is deprecated. Deprecated in Java
Warning:(72, 43) 'Progress Dialog' is deprecated. Deprecated in Java
Warning:(89, 27) 'Progress Dialog' is deprecated. Deprecated in Java
我没有找到相同问题的解决方案.
I didn't find solution for the same problem.
推荐答案
自定义 ProgressBar 就是答案.您可以自己编写或使用来自 https://github.com/Q115/DelayedProgressDialog 的 DelayedProgressDialog 之类的内容
Custom ProgressBar is the answer. You can write your own or use something like DelayedProgressDialog from https://github.com/Q115/DelayedProgressDialog
用法:
DelayedProgressDialog progressDialog = new DelayedProgressDialog();
progressDialog.show(getSupportFragmentManager(), "tag");
这篇关于ProgressDialog 现已弃用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!