android - when a setOnTouchListener is set to webview - loadDataWithBaseURL does not work or shows the same old content -


I am loading some sequence of pages using the animation effect of the user's swipes / flings visibility - that's the iPhone transition Bring the effect.

I have two webviews in a viewfinder.

Both webwaves have been added to use the gesture detector for set-on touch alisoner and chime.

After determining the inclination direction, I am setting the next / previous page and then call the show / decoration of the Pulipti.

What happens is that the webview content is not showing anything I pass through LoadDataWithBaseURL? - It shows the old content.

If I remove the touch listener, and add a button to navigate, the same process / argument works.

My code is similar to this one -

Why is this happening? Can anyone help me?

I had only one problem and I found that if I returned the wrong reality instead of gesture detector By the way, the data in the webview is updated on every swipe. When the truth is coming back, it seems that only the cache of data used for the webview is displayed, hope it also helps with your problem.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -