Exemple #1
0
 public void OnScrollEnd(MotionEvent e)
 {
     pdfView.LoadPages();
     HideHandle();
     if (!animationManager.IsFlinging())
     {
         pdfView.PerformPageSnap();
     }
 }
Exemple #2
0
 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();
 }