如何知道什么时候的WebView渲染完成 [英] How to know when WebView rendering is finished
问题描述
我要当的WebView加载显示进度条。我躲在它OnPageFinished(),但是这是为时尚早。 web视图依然渲染图像。
I want to display a progress bar while the WebView is loading. I am hiding it on OnPageFinished(), but this is too early. The Webview is still rendering the image.
web视图文档指出:当onPageFinished()被调用,渲染图像可能无法尚未更新要得到通知新的照片,使用onNewPicture(的WebView,资料图片)
The WebView documentation states: "When onPageFinished() is called, the rendering picture may not be updated yet. To get the notification for the new Picture, use onNewPicture(WebView, Picture)."
不过,OnNewPicture和PictureListener接口是德precated和过时。有另一种方式来知道渲染完成?
However, OnNewPicture and the PictureListener interface is deprecated and obsolete. Is there another way to know that the rendering is complete?
推荐答案
不幸的是,我发现,没有任何活动或机制来真正知道什么时候该页面完全加载和完成渲染。
Unfortunately, I have found that there is no event or mechanism to truly know when the page is completely loaded and finished rendering.
这篇关于如何知道什么时候的WebView渲染完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!