Here is a simple code to animate webview screen. But the problem is, the screen get scrolled before the animation take place..but i need apply animation for current screen... how can i solve this?
here is my piece of Code
if(e1.getX() - e2.getX() > SWIPE_MIN_DISTANCE && Math.abs(velocityX) > SWIPE_THRESHOLD_VELOCITY) {
mWebView.startAnimation(AnimationUtils.loadAnimation(context, R.anim.page_slide_left_in));
mWebView.startAnimation(AnimationUtils.loadAnimation(context,R.anim.page_slide_left_out));
mWebView.scrollBy(mWebView.getWidth(),0);
}