Exemple #1
0
 /// <summary>
 /// Intercepts only touch events over the draggable view.
 /// </summary>
 /// <param name="ev"></param>
 /// <returns></returns>
 public override bool OnInterceptTouchEvent(MotionEvent ev)
 {
     try
     {
         bool handled = false;
         if (Enabled)
         {
             handled = DragHelper.ShouldInterceptTouchEvent(ev) &&
                       DragHelper.IsViewUnder(DraggableView, (int)ev.GetX(), (int)ev.GetY());
         }
         else
         {
             DragHelper.Cancel();
         }
         return(handled || base.OnInterceptTouchEvent(ev));
     }
     catch (Exception e)
     {
         Methods.DisplayReportResultTrack(e);
         return(base.OnInterceptTouchEvent(ev));
     }
 }