进度和progressDialog之间的区别是什么? [英] What is the difference between Progressbar and progressDialog?
问题描述
我已到处搜寻并阅读谷歌的官方文档。但是,我还没有看到它们之间的区别。
I have searched everywhere and read the official doc of Google. But I still don't see the difference between them.
当我们要使用的进度以及何时我们应该使用ProgressDialog?
When should we use ProgressBar and when should we use ProgressDialog?
推荐答案
进度是一个视图(如TextView的,ImageView的,按钮等),它可以用在你的布局,显示了一定的进展。
ProgressBar is a View (like TextView, ImageView, Button, etc..), which can be used in your layout to show some progress.
ProgressDialog是一个对话与'内置'进度。对话框可以用来使用户的等待时的东西被计算。 ProgressDialog可以更容易地显示在对话框的计算的进展。
ProgressDialog is a Dialog with 'built-in' ProgressBar. Dialogs can be used to make user wait while something is being computed. ProgressDialog makes it easier to show progress of your computation in dialog.
这篇关于进度和progressDialog之间的区别是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!