Android - How to make a progress dialog embedded on the UI?

我的梦境 提交于 2019-12-22 08:36:37

问题


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:

Any idea?

Thanks!

EDIT: The pattern is known as ProgressWheel

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:


回答1:


Use android:indeterminate="true" from ProgressBar.

Sample code:

<ProgressBar 
    android:layout_width="15dp"
    android:layout_height="15dp"
    android:indeterminate="true" />


来源:https://stackoverflow.com/questions/6650415/android-how-to-make-a-progress-dialog-embedded-on-the-ui

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!