如何添加二进度的Android ProgressDialog [英] How To Add Second ProgressBar Android ProgressDialog
问题描述
朋友;
如何设置ProgressDialog二进度条像下面的图片。
How To Set ProgressDialog Second Progress Bar Like Below Images.
感谢名单。
推荐答案
您展示的截图是不是ProgressDialog,它只是一个对话框,自定义布局。 需要,为了显示像在你的图象对话的是:
The screenshot you show is not a ProgressDialog, it is just a Dialog with a custom layout. What you need, in order to show a dialog like the one in your picture is:
-
一个自定义布局定义两个ProgressBars,一个在另一个下面。
A custom layout defining two ProgressBars, one below the other.
创建一个对话框,并调用yourDialog.setContentView(R.id.yourCustomLayout)
Create a Dialog and call yourDialog.setContentView(R.id.yourCustomLayout)
就是这样,这就是你所需要的
That's it, that's all you need
我想请你注意的事实,你也可以显示在同一个进度作为第一第二的进展,通过yourProgressBar.setSecondaryProgress(progressValue)。
I would like to call your attention to the fact that you can also show the second progress in the same ProgressBar as the first, by using yourProgressBar.setSecondaryProgress(progressValue).
这篇关于如何添加二进度的Android ProgressDialog的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!