开发者

Android: loadData into Webview without repositioning screen

I want to download and load images into Webview as they are downloaded (embedding direct image url's into the HTML is not an option)

When I call the webView.loadData(myData.. the full page is refreshed and the user's app is repositioned to 0,0 - is there a way where I can append to the HTML with the new image as and when it is downloaded? I am looking for a way to override the functionality of resetting the position of the webView on a call to loadDa开发者_运维技巧ta

Thanks


Can you handle the problem in JS side by trigering an event to document when the app has downloaded images ?

Like :

myWebView.loadUrl("javascript:imagesLoaded()");
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜