I've stumbled upon another tricky error...
I'm using basic ViewPager, which consists of several pages, which are basically consisted of HTML, displayed by a WebView.
I use the method:
mWebView.loadDataWithBaseURL(null, html, "text/html", "utf-8", "about:blank")
for showing the contents. HTML is a String variable. Everything work fine, but I would expect all the views to be preloaded (I've set offscreenpage limit of the viewpager and even instantiate item is called right with the right data), but it isn't.
The webview is loaded, but displayed only after the click. It doesn't occur to me first, because I clicked everytime I wanted to show another page, but if you move to quickly, clicks get a bit delayed and no page is displayed. Only after I click again. Or, if I drag one page and move slightly right, I can see that the another view is not loaded yet... it displays only after one second.
Has anybody encountered something similar?
Any help is appreciated.