public void OnScrollEnd(MotionEvent e) { pdfView.LoadPages(); HideHandle(); if (!animationManager.IsFlinging()) { pdfView.PerformPageSnap(); } }
public void StartXAnimation(float xFrom, float xTo) { StopAll(); animation = ValueAnimator.OfFloat(xFrom, xTo); animation.SetInterpolator(new DecelerateInterpolator()); animation.AnimationCancel += (s, e) => { pdfView.LoadPages(); pageFlinging = false; }; animation.Update += (s, e) => { pdfView.MoveTo((float)e.Animation.AnimatedValue, pdfView.CurrentYOffset); }; animation.AnimationCancel += (s, e) => { pdfView.LoadPages(); pageFlinging = false; }; animation.SetDuration(400); animation.Start(); }