Issue
I have a WebView load html data from a response in a ViewPager which contain WebView,so if I swipe fast the data will load but some portion will be white, initial i thought its a render issue onRenderProcessGone but it was not coming it to that method
@Override
public boolean onRenderProcessGone(WebView view,
RenderProcessGoneDetail detail) {
}
This is how the render webview in view pager looks like

if you see the above image you can see the some portion not rendered. if I swipe back after going to other page, the data will load perfectly, so how can I solve the issue. i followed the Managing WebView objects
but noting is working, Hope some one will help to fix the issue
Solution
This was a bug in chrome version v74, when we using webview inside cardview, as i can see your webview is inside cardview,So dont worry they have done a fix in canary version v75 for details check the link below Rendering issue
So for testing you can download the canary version of chrome from play-store and enable it as your webview from developer console, after that check whether you are getting the issue or not. If fixed wait for the stable version of chrome v75 meanwhile if you need a urgent fix , i can suggest you that change the cardview to linear-layout and make card image with shadow as background,for generating card you can check shadow4android
Else wait for the stable relase,Hope this helped you
Answered By - Ramz
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.