Пример #1
0
 public bool TouchStopped(MotionEvent motionEvent,
                          PullToRefreshComponent pullToRefreshComponent)
 {
     if (pullToRefreshComponent.GetListTop() > PullToRefreshComponent.MinPullElementHeight)
     {
         pullToRefreshComponent.BeginPullDownRefresh();
     }
     else
     {
         pullToRefreshComponent.RefreshFinished(pullToRefreshComponent.GetOnUpperRefreshAction());
     }
     return(true);
 }
 public bool TouchStopped(MotionEvent motionEvent,
                          PullToRefreshComponent pullToRefreshComponent)
 {
     if (pullToRefreshComponent.GetListTop() > PullToRefreshComponent.MinPullElementHeight)
     {
         pullToRefreshComponent.BeginPullDownRefresh();
     }
     else
     {
         pullToRefreshComponent.RefreshFinished(pullToRefreshComponent.GetOnUpperRefreshAction());
     }
     return true;
 }
Пример #3
0
 public bool TouchStopped(MotionEvent motionEvent,
                          PullToRefreshComponent pullToRefreshComponent)
 {
     if (pullToRefreshComponent.GetBottomViewHeight() > PullToRefreshComponent.MinPullElementHeight)
     {
         pullToRefreshComponent.BeginPullUpRefresh();
     }
     else
     {
         pullToRefreshComponent.RefreshFinished(pullToRefreshComponent
                                                    .GetOnLowerRefreshAction());
     }
     return true;
 }
Пример #4
0
 public bool TouchStopped(MotionEvent motionEvent,
                          PullToRefreshComponent pullToRefreshComponent)
 {
     if (pullToRefreshComponent.GetBottomViewHeight() > PullToRefreshComponent.MinPullElementHeight)
     {
         pullToRefreshComponent.BeginPullUpRefresh();
     }
     else
     {
         pullToRefreshComponent.RefreshFinished(pullToRefreshComponent
                                                .GetOnLowerRefreshAction());
     }
     return(true);
 }