开发者

android progressDialog is static

开发者 https://www.devze.com 2023-03-04 14:36 出处:网络
I have an issue with my ProgressDialog object.开发者_运维知识库 When I show it first time, it is spinning, but after I dismiss it and show it again, the dialog is static, it it not spinning... Can you

I have an issue with my ProgressDialog object.开发者_运维知识库 When I show it first time, it is spinning, but after I dismiss it and show it again, the dialog is static, it it not spinning... Can you please tell me why? All of this happens in the UI thread. Thanks


are you doing any processing in the UI thread during the second show of the ProgressDialog? If so, you need to move the processing to a background thread. Otherwise, the progress dialog does not get the CPU to update(spin) itself.

0

精彩评论

暂无评论...
验证码 换一张
取 消