Skip to content Skip to sidebar Skip to footer

Synchronizing And Combining Webviews Together To Reduce Loading For Files Over 500kb

This question is a continuation of 'loading long webview over 500kb'. So as the topic suggest it reduces file loading over 500kb long. My idea was to use 5 webviews and merge them

Solution 1:

If it is possible the simpler option would be to split the data into separate views, then you could use a AbsListView.OnScrollListener (only available with AbsListView and not WebView) and a list or grid view to present the different views. This seems like a much cleaner way than switching between views but I don't know how you have your layout and perhaps this isn't possible. You would have to arrange your views into a list and then render each view on a back ground thread and push it back into the view when it is ready. You should check out PullToRefresh for a great example on how to do this.

If the above doesn't suite you another option would be use the onTouchEvent to inform you when a user might be scrolling and try calculate using whatever scroll offset methods are available in your Layout/View, when you have hit the bottom but this is very complex. ScrollView has methods to inform you if you have over scrolled which might help


Post a Comment for "Synchronizing And Combining Webviews Together To Reduce Loading For Files Over 500kb"