コード例 #1
0
 public bool TouchStopped(MotionEvent motionEvent,
                          PullToRefreshComponent pullToRefreshComponent)
 {
     if (pullToRefreshComponent.GetListTop() > PullToRefreshComponent.MinPullElementHeight)
     {
         pullToRefreshComponent.BeginPullDownRefresh();
     }
     else
     {
         pullToRefreshComponent.RefreshFinished(pullToRefreshComponent.GetOnUpperRefreshAction());
     }
     return(true);
 }
コード例 #2
0
 public bool TouchStopped(MotionEvent motionEvent,
                          PullToRefreshComponent pullToRefreshComponent)
 {
     if (pullToRefreshComponent.GetListTop() > PullToRefreshComponent.MinPullElementHeight)
     {
         pullToRefreshComponent.BeginPullDownRefresh();
     }
     else
     {
         pullToRefreshComponent.RefreshFinished(pullToRefreshComponent.GetOnUpperRefreshAction());
     }
     return true;
 }
コード例 #3
0
ファイル: PullingUpState.cs プロジェクト: 284247028/MvvmCross
 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);
 }