Android的 - 如何使嵌入式UI上的进度对话框? [英] Android - How to make a progress dialog embedded on the UI?
问题描述
我知道,我已经找到了答案,在计算器上有一天这个问题,但我不能再找到链接。基本上,我想创建一个 ProgressDialog
不阻止用户界面,如从Android Market之一:
I know that I have found the answer to this question on StackOverflow one day but I couldn't find the link anymore. Basically, I want to create a ProgressDialog
that doesn't block the UI, like the one from the Android Market:
你知道吗?
谢谢!
修改:该模式被称为 ProgressWheel
EDIT: The pattern is known as ProgressWheel
EDIT2 :只是为了讲清楚,到现在为止我已经使用了 ProgressDialog
类,我不是在XML这样做。我在做什么看起来是这样的:
EDIT2: Just to make it clear, until now I have used the ProgressDialog
class and I am not doing this in XML. What I am doing looks like this:
推荐答案
使用<一个href=\"http://developer.android.com/reference/android/widget/ProgressBar.html#attr_android%3aindeterminate\"相对=nofollow> 的android:不确定=真正的
从的 进度
。
样code:
<ProgressBar
android:layout_width="15dp"
android:layout_height="15dp"
android:indeterminate="true" />
这篇关于Android的 - 如何使嵌入式UI上的进度对话框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!