开发者

Android: loadData into Webview without repositioning screen

开发者 https://www.devze.com 2023-03-24 00:41 出处:网络
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)

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

精彩评论

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