Android 中 Activity 之间的进度条?
当单击网格项时,我想在显示的下一个活动的时间之间显示进度条。那么第二个活动有一个自定义列表视图。我还想显示一个进度条。怎么办?
when click the grid item, i want to show a progressbar between the time of next Activity shown. then the second activity has a custom listview. there also i want to show a progressbar. how to do that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我只是在自学,还没有机会检查源代码,但我知道 RedditIsFun 应用程序(当然是 Reddit)在加载下一个内容之间执行此操作链接和加载评论。查看来源。
I'm just learning myself and I haven't had a chance to inspect the source, but I know that the RedditIsFun app (for Reddit, of course) does this in-between loading the next links, and loading comments. Check out the source.
您应该尝试一下,
首先在 Activity 中创建 ProgressDilog。 。 。
现在,在您想要花一些时间的任何操作中设置进度对话框
现在使用线程来处理进度栏
就是这样。希望这会对您有所帮助。
You should try this,
First Create the ProgressDilog in Activity. . .
Now, Set the ProgressDialog in the Any action where u want to Take Some time
Now use Thread to Handle the Progressbar
Thats it. Hope this will help you.