Re: [android-developers] WebView wait for images
Jeff wrote:
> When using WebView to load a page that has a number of images, the
> images seem to appear one a time as they are available. This happens
> even if the images are cached. This tends to give the user more of a
> "browser" type of experience rather than an "app" type of experience.
>
> Does anyone know if there is a way to make WebView wait until all of
> the images are rendered before displaying the entire page?
At least for your initial page, you can make it invisible to start, then
use a WebViewClient and onPageFinished() to find out when the page is
fully-loaded, then make it visible. I've used this in conjunction with a
custom RotateAnimation progress indicator, for example.
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy
Android Consulting: http://commonsware.com/consulting
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home