Android的 - 显示一个不确定的进度没有对话 [英] Android - show an indeterminate progressbar without the dialog

查看:83
本文介绍了Android的 - 显示一个不确定的进度没有对话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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 \ApiDemos\src\com\example\android\apis\view\

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

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).

这篇关于Android的 - 显示一个不确定的进度没有对话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆