当我们在android中翻转webview时,如何在webview中显示加载图标

发布于 2024-11-17 04:13:15 字数 195 浏览 5 评论 0原文

实际上我的应用程序有 3 个网页视图,我们可以浏览它。我在每个网络视图上添加了一个加载进度条。现在,当我启动应用程序时,会加载第一个网页视图。我无法翻转视图,因为加载符号位于前台。我的要求是,webview 必须显示加载符号直到加载,并且可以翻转到其他再次具有加载符号的 webview。

我厌倦了尝试一切却无法做到。请任何人有任何解决方案。 提前致谢....

Actually my app hase 3 webviews and we can flip through it. I had added a loading progress bar on each webview. Now when i start the app, first web view loads. I am not able to flip the views as loading symbol is in foreground. My requirement is, webview have to show loading symbol until it loads as well as it can be flipped to other webviews which again have loading symbol.

I am tired of trying everything but not able to do it. Please anyone have any solution.
Thanks in advance....

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

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

发布评论

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

评论(1

妳是的陽光 2024-11-24 04:13:15

当加载符号到来时我们不能做任何事情。我们必须通过后退按钮取消它才能做其他事情。我通过在 XML 中创建进度条并根据要求执行使其可见和不可见的逻辑来解决这个问题。

We can't do anyting when loading symol comes.we have to cancel it by back button for doing anything else. I had solved this by creating a progress bar in XML and doing a logic for making it visible and invisible according to requirement.

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