System UI (Statusbar and Navigation Bar) render artifact [duplicate]

半世苍凉 提交于 2019-12-08 19:57:32
matiash

There is a known bug in WebView (at least since KitKat) that sometimes causes these artifacts. It was filed in the Android bug tracker as this issue. Although they claim it's fixed in Android 5.0, that is not the case, though (at least from my experience) it's not quite as easy to reproduce as before.

In any case, the workaround is to use software rendering for the WebView, via setLayerType():

webView.setLayerType(View.LAYER_TYPE_SOFTWARE, null);

Some related questions:


If you have a self-contained example that reproduces the bug, I would be very grateful if you could provide it to the guys at the AOSP Issue Tracker, in the link above.

This might be rendering problem and has been reported here

Setting your WebView like so:

yourWebView.setLayerType(View.LAYER_TYPE_SOFTWARE, null);

can solve your problem.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!