Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (multithreading)
Viewing all articles
Browse latest Browse all 4

WebViews not rendering until on the display list

$
0
0

I have created an application for Android only that swipes views in and out, with each new view dependent on the selection of the previous.

The problem is, if I create a new webview just before animating it in, it flashes as soon as it is visible, I presume this is because it is only rendered once in the main view rectangle area.

Is there a way around this?

I have created a workaround by loading in the all my next possible webviews and adding them to the display list of a temporary view with the lowest possible z-index, so they are not visible under my current views, then once they are loaded I remove them from this view ready to be used and already pre-rendered.

Another problem now arises, when preloading the next views, the functionality of the app freezes a few milliseconds while the app calculates all the next possible view selections and adds them to the temp view to render.

I have tried to create an external window to try to simulate multithreading in another context, but this still doesnt work?

The ideal solution would be a way to force a webview to render even though it is added to a view which is currently off screen. This even happens if the webview is in an invisible container. It seems there is no way to force it to render.

Thanks in advance for any help.


Viewing all articles
Browse latest Browse all 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>