我希望在 WebView 上完全绘制图像时收到通知。使用 PictureListener and onNewPicture是对此的常见答案(甚至由 onPageFinished documentation 建议),但被列为已弃用和过时。有替代品/替代品吗?
最佳答案
我看到 Android 4.0 的文档已更新:
This method is deprecated. Due to internal changes, the picture does not include composited layers such as fixed position elements or scrollable divs. While the PictureListener API can still be used to detect changes in the WebView content, you are advised against its usage until a replacement is provided in a future Android release.
目前还没有替代品。
关于android - PictureListener 已弃用和过时,有替代品吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7166534/