I have been playing with Chromium based WebView (KitKat 4.4.4), I am unable to preload webview with local content (content from the same device). I browsed through 'stackoverflow' and figured out 'if I put WebView' as a child of 'ViewFlipper' it does load web pages (which are not local on the device, external web pages).--
Can any one of you point me in the right direction to achieve this? My use case is 'I have bunch of HTML/CSS/Images' local on the device, would like to load them into webview before user bring the webview into the view.
Thanks
MB
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
--
You received this message because you are subscribed to the Google Groups "android-webview-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-webview...@chromium.org.
To post to this group, send email to android-w...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/android-webview-dev/a547ded1-f8db-4ad4-9a3b-ed7e83be497e%40chromium.org.
Maybe you can put your WebView off-screen? E.g. GMail opens 3 WebViews: for the previous, current, and the next message, positioned in a row, with only the current message inside the screen coordinates. This allows them to pre-load and pre-render the content of the messages before you view them.
Maybe you can put your WebView off-screen? E.g. GMail opens 3 WebViews: for the previous, current, and the next message, positioned in a row, with only the current message inside the screen coordinates. This allows them to pre-load and pre-render the content of the messages before you view them.
On Wed, Nov 26, 2014 at 6:56 PM, Mahabudhi <sai.m...@gmail.com> wrote:
Bo Liu, thanks for your reply. Probably I should reframe my question as 'pre-rendering', the issue is when my WebView comes into 'view' (user visibility) then it starts rendering the content (e.g. images that I loaded into webview). This leaves a bad user experience, is there a way to avoid this. (when I used ViewFlipper technique to load webpages like google.com, that content is preloaded into webview and rendered too, so user experience is pretty good).
Thanks
MB
On Wednesday, 26 November 2014 10:44:34 UTC-8, Bo Liu wrote:+android-webview-devLoading content into the webview is independent of rendering the webview. You can create a detached webview, load content into it, then attached it to the view tree after the onPageFinished callback.On Wed, Nov 26, 2014 at 10:35 AM, Mahabudhi <sai.m...@gmail.com> wrote:I have been playing with Chromium based WebView (KitKat 4.4.4), I am unable to preload webview with local content (content from the same device). I browsed through 'stackoverflow' and figured out 'if I put WebView' as a child of 'ViewFlipper' it does load web pages (which are not local on the device, external web pages).--
Can any one of you point me in the right direction to achieve this? My use case is 'I have bunch of HTML/CSS/Images' local on the device, would like to load them into webview before user bring the webview into the view.
Thanks
MB
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
--
You received this message because you are subscribed to the Google Groups "android-webview-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-webview-dev+unsub...@chromium.org.
To unsubscribe from this group and stop receiving emails from it, send an email to android-webview-dev+unsub...@chromium.org.
To post to this group, send email to android-w...@chromium.org.
To unsubscribe from this group and stop receiving emails from it, send an email to android-webview-dev+unsub...@chromium.org.
To post to this group, send email to android-w...@chromium.org.
Bo,
I just used 'google.com' as example but I used some other sites like news.bbc.co.uk etc and waited for few seconds, then I do see it was completely loaded before webview came into view (what I mean here is as soon as this webview came into view, I did see whole web page was loaded and did not see any part so the page getting refreshed or loaded, very first time). Is there a difference how the content is supplied (i.e. from a webserver vs local).
To unsubscribe from this group and stop receiving emails from it, send an email to android-webview-dev+unsubscribe...@chromium.org.
To post to this group, send email to android-w...@chromium.org.
Agree high res images could be problem, but if I waited for say 20 seconds before seeing the next webview this high resolution image should have been decoded right?
Got it, thank you. But is there any other technique that I can use so that when webview comes into 'view' all the images are rendered (you gave a clue, bringing webview animation can be slower, so that it gets enough time to render). I am using 'loadDataWithBaseURL' to load my local images.
Only thing that is unanswered in my mind is, this behavior is not seen with external websites. The longer I wait more complete website I view. In this case too it needs to resize images to fit to my screen etc right, but webview is doing work.