Hi Eveyone

I've got a question about webviews.  I've been doing some wok with
one, displaying various things through them (images, text, some fancy
spinners (or pickers in our lingo i suppose)) and I've run into a very
interesting problem which I haven't been able to sort out.

The first is a 'Cannot find view width after first layout' error,
which I tracked into the source, and seems to arise from the webviews
use of threads, and the occasional unavailability of width etc...
before render time.  This is just a guess.

No matter, I worked around that one by just having a redraw occur.
Which worked fine as its in the initial boot phase anyway and its not
a problem really.

However shortly after 'solving' that problem I ran into another.  When
I attempted to make an options menu for my application, whatever
content was displayed in the webview disappears.  Not everything
(certain images with very high z-level settings stay visible for
example).  I got around this one, again, by performing a full redraw,
everything displays properly after that.

The main problem is that this makes a very hiccupy and disconcerting
experience for users.  I've tried this with options, context and
dialog menus.

I'm hoping someone can shed some light here?  The webview doc's on the
developer site are not very useful for this problem as far as I can
tell.

Thanks,

Nathaniel

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to