Beispiel #1
0
 public bool HandleMovement(MotionEvent motionEvent,
                            PullToRefreshComponent pullToRefreshComponent)
 {
     pullToRefreshComponent.UpdateEventStates(motionEvent);
     pullToRefreshComponent.PullUp(motionEvent, _firstY);
     pullToRefreshComponent
         .ReadyToReleaseLower(pullToRefreshComponent
                                  .GetBottomViewHeight() > PullToRefreshComponent.MinPullElementHeight);
     return true;
 }
 public bool HandleMovement(MotionEvent motionEvent,
                            PullToRefreshComponent pullToRefreshComponent)
 {
     pullToRefreshComponent.UpdateEventStates(motionEvent);
     pullToRefreshComponent.PullUp(motionEvent, _firstY);
     pullToRefreshComponent
     .ReadyToReleaseLower(pullToRefreshComponent
                          .GetBottomViewHeight() > PullToRefreshComponent.MinPullElementHeight);
     return(true);
 }
Beispiel #3
0
 public bool TouchStopped(MotionEvent motionEvent,
                          PullToRefreshComponent pullToRefreshComponent)
 {
     if (pullToRefreshComponent.GetBottomViewHeight() > PullToRefreshComponent.MinPullElementHeight)
     {
         pullToRefreshComponent.BeginPullUpRefresh();
     }
     else
     {
         pullToRefreshComponent.RefreshFinished(pullToRefreshComponent
                                                    .GetOnLowerRefreshAction());
     }
     return true;
 }
 public bool TouchStopped(MotionEvent motionEvent,
                          PullToRefreshComponent pullToRefreshComponent)
 {
     if (pullToRefreshComponent.GetBottomViewHeight() > PullToRefreshComponent.MinPullElementHeight)
     {
         pullToRefreshComponent.BeginPullUpRefresh();
     }
     else
     {
         pullToRefreshComponent.RefreshFinished(pullToRefreshComponent
                                                .GetOnLowerRefreshAction());
     }
     return(true);
 }