I\'m generating a book app, of sorts, that displays pages in a WebView
. I have Next/Previous ImageButtons
and a GestureOverlay
to detect l
If anyone's interested, I found a way to do this.
I defined Animation
variables:
Animation slideLeftAnimation = AnimationUtils.loadAnimation(getBaseContext(), R.anim.slide_left);
Animation slideRightAnimation = AnimationUtils.loadAnimation(getBaseContext(), R.anim.slide_right);
And the slide_left
and slide_right
xml files are from the Android API tutorials.
Then, for left or right swipes, I used mWebView.startAnimation(leftOrRightAnimation);
before my mWebView.loadUrl(url);
call.
Hope this helps anyone else!
Chris