Android的 - 显示一个不确定的进度没有对话不确定、进度、Android

由网友(我一直在你身后i)分享简介:我想告诉我的进度条在屏幕中心时,处理上的一个按钮点击情况。但我只想没有对话框的进度。I want to show my progressbar in the center of the screen when a processing happens on a button click. But I just wan...

我想告诉我的进度条在屏幕中心时,处理上的一个按钮点击情况。但我只想没有对话框的进度。

I want to show my progressbar in the center of the screen when a processing happens on a button click. But I just want the progressbar without the dialog box..

有没有什么办法可以做到这一点?

Is there any way I can do this?

推荐答案

它完全解释在SDK里面ApiDemos。 所需的实例名为:ProgressBar3.java,可以在 ApiDemos找到的 src COM 例如机器人蜜蜂查看

It's explained in full in ApiDemos inside the SDK. The example that you want is named: ProgressBar3.java and can be found in ApiDemossrccomexampleandroidapisview

另外,如果你想这样只有进度条会显示您可以定义对话框本身作为一个透明的视图/叠加(它的实例说明以及)。

Also, if you want to remove the borders of the dialog so that only the progress bar appears you can define the dialog itself as a transparent view/overlay (it's explained in the examples as well).

阅读全文

相关推荐

最新文章