WebView doesn't get drawn, WARN/webcore(5336): Can't get the viewWidth after the first layout

流过昼夜 提交于 2019-12-05 14:30:22

Try using parent.forceLayout() then call parent.measure().

This forces the layout to redraw itself without any regard for other layout requests (and doesn't redraw the parent views), and then remeasures it with current specs.

Hope this helps!

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