Android 水平进度条对话框

发布于 2024-12-16 16:07:41 字数 138 浏览 6 评论 0原文

我在同步活动中创建的对话框有一点问题。我需要向用户显示下载进度和当前连接速度(以 Kb/Mb 为单位)。但这是我第一次尝试水平进度条,我不太熟悉如何做到这一点。因此,欢迎任何形式的帮助/建议/忠告。如果你能帮助我理解这一点,我会非常高兴!

谢谢!

I have a little problem with my Dialog created in my Synchronization activity. I need to show to the user the progress of the downloading and the current connection speed in Kb/Mb. But that's my first try with Horizontal Progress Bar and I'm not really familiar how to do that. So any kind of help/suggestions/advices are welcomed. I'll be really happy if you help me to understand this!

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

心作怪 2024-12-23 16:07:41

您看过警报对话框的 API 演示吗?它包含一个进度栏对话框,因此可能会有所帮助:

http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/AlertDialogSamples.html

Have you looked at the API demos for alert dialogs? It contains a progress bar dialog, so may be helpful:

http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/AlertDialogSamples.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文