W/webcore(2733): Can't Get The Viewwidth After The First Layout
Solution 1:
For anyone who has this problem:
From what I've found there's some threading going on when the webviews are created, and certain variables - width for example, are being referenced across threads. This is to quote the code "imperfect" because sometimes the data is unavailable at rendering time.
Look at this:
and ctrl-f the text of the error "Can't get viewWidth"... and you'll see what I'm talking about.
An interesting continuation here is that i was using multiple webviews - this may have compounded that problem. Another interesting aspect is that the webview which failed in my code was always the first one to have contents loaded into it, although it did not always fail.
My solution has been to let things fail the first time, and then re-render the failed web-view.
Hope this helps.
Nathaniel.
Solution 2:
What happens when it doen't load? do you get an error in the logcat?
after loading the data, try doing this:
webView.refreshDrawableState();
Post a Comment for "W/webcore(2733): Can't Get The Viewwidth After The First Layout"