1

A simple example:

webview.loadData("http://example.com/html_with_image.php","text/html",null);

The loaded page looks like this:

<html>
  <body>
    <img src="lena.jpg" width="768" height="1024">
  </body>
</html>

Since transferring the image may take some time I was wondering if loadData()has to be threaded.

4

1 回答 1

4

WebView 无论如何都在加载异步,所以你不必担心。

于 2013-10-14T19:42:57.130 回答