什么是PictureListener? [英] What is the PictureListener?

查看:177
本文介绍了什么是PictureListener?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是Android WebView.PictureListener 并当它究竟是叫什么名字?该文档是相当模糊了。

时的图片中的WebView的内容?是不是每一次所谓的的WebView变化的内容(即:每个img元素加载时间)?


解决方案

的WebView做它的一个图片,这可以看作是一个显示列表里呈现。图片记录一切网页需要借鉴:文字,线条,图像等,这听众可用于通知每当WebView中的内容已被更改的的它已经准备好要绘制<。 / p>

What is the Android WebView.PictureListener and when is it called exactly? The documentation is quite vague about it.

Is the picture the content of the WebView? Is it called each time the content of the WebView changes (ie: each time a img element is loaded)?

解决方案

WebView does its rendering inside a Picture, which can be seen as a display list. The picture records everything the web page needs to draw: text, lines, images, etc. This listener can be used to be notified whenever the content of the WebView has changed and it's ready to be drawn.

这篇关于什么是PictureListener?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆