views:

36

answers:

0

I am loading some sequence of pages while the user swipes/flings on the webview, using the animation effect of the viewflipper - to bring that iphone transition effect.

I have two webviews added to a viewflipper.

Added setOnTouchListener to both the webviews and using gesture detector for fling.

After detecting the fling direction, I am setting the next/previous page and then calling the flipper's shownext/showprevious.

What happens is that the webview is not showing the content whatever that I pass through loadDataWithBaseURL ? - it shows the old content.

If I remove the touch listener(setOnTouchListener), and add a button to navigate, then the same process/logic works.

My code is similar to this one - http://pastie.org/1065119.txt

why this is happening ? could anyone help me out ?