Пример #1
0
 public bool HandleMovement(MotionEvent motionEvent,
                            PullToRefreshComponent pullToRefreshComponent)
 {
     pullToRefreshComponent.UpdateEventStates(motionEvent);
     pullToRefreshComponent.PullDown(motionEvent, _firstY);
     pullToRefreshComponent.ReadyToReleaseUpper(pullToRefreshComponent
                                                .GetListTop() >
                                                PullToRefreshComponent.MinPullElementHeight);
     return(true);
 }
 public bool HandleMovement(MotionEvent motionEvent,
                            PullToRefreshComponent pullToRefreshComponent)
 {
     pullToRefreshComponent.UpdateEventStates(motionEvent);
     pullToRefreshComponent.PullDown(motionEvent, _firstY);
     pullToRefreshComponent.ReadyToReleaseUpper(pullToRefreshComponent
                                                    .GetListTop() >
                                                PullToRefreshComponent.MinPullElementHeight);
     return true;
 }
Пример #3
0
 public bool HandleMovement(MotionEvent motionEvent,
                            PullToRefreshComponent pullToRefreshComponent)
 {
     pullToRefreshComponent.UpdateEventStates(motionEvent);
     pullToRefreshComponent.PullUp(motionEvent, _firstY);
     pullToRefreshComponent
         .ReadyToReleaseLower(pullToRefreshComponent
                                  .GetBottomViewHeight() > PullToRefreshComponent.MinPullElementHeight);
     return true;
 }
Пример #4
0
 public bool HandleMovement(MotionEvent motionEvent,
                            PullToRefreshComponent pullToRefreshComponent)
 {
     pullToRefreshComponent.UpdateEventStates(motionEvent);
     pullToRefreshComponent.PullUp(motionEvent, _firstY);
     pullToRefreshComponent
     .ReadyToReleaseLower(pullToRefreshComponent
                          .GetBottomViewHeight() > PullToRefreshComponent.MinPullElementHeight);
     return(true);
 }
Пример #5
0
 public bool HandleMovement(MotionEvent motionEvent,
                            PullToRefreshComponent pullToRefreshComponent)
 {
     pullToRefreshComponent.UpdateEventStates(motionEvent);
     if (pullToRefreshComponent.IsPullingDownToRefresh())
     {
         pullToRefreshComponent.SetPullingDown(motionEvent);
         return true;
     }
     else if (pullToRefreshComponent.IsPullingUpToRefresh())
     {
         pullToRefreshComponent.SetPullingUp(motionEvent);
         return true;
     }
     return false;
 }
 public bool HandleMovement(MotionEvent motionEvent,
                            PullToRefreshComponent pullToRefreshComponent)
 {
     pullToRefreshComponent.UpdateEventStates(motionEvent);
     if (pullToRefreshComponent.IsPullingDownToRefresh())
     {
         pullToRefreshComponent.SetPullingDown(motionEvent);
         return(true);
     }
     else if (pullToRefreshComponent.IsPullingUpToRefresh())
     {
         pullToRefreshComponent.SetPullingUp(motionEvent);
         return(true);
     }
     return(false);
 }