public bool HandleMovement(MotionEvent motionEvent,
                            PullToRefreshComponent pullToRefreshComponent)
 {
     pullToRefreshComponent.UpdateEventStates(motionEvent);
     pullToRefreshComponent.PullDown(motionEvent, _firstY);
     pullToRefreshComponent.ReadyToReleaseUpper(pullToRefreshComponent
                                                    .GetListTop() >
                                                PullToRefreshComponent.MinPullElementHeight);
     return true;
 }
Esempio n. 2
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);
 }
Esempio n. 4
0
 public bool HandleMovement(MotionEvent motionEvent,
                            PullToRefreshComponent pullToRefreshComponent)
 {
     pullToRefreshComponent.UpdateEventStates(motionEvent);
     pullToRefreshComponent.PullDown(motionEvent, _firstY);
     pullToRefreshComponent.ReadyToReleaseUpper(pullToRefreshComponent
                                                .GetListTop() >
                                                PullToRefreshComponent.MinPullElementHeight);
     return(true);
 }
Esempio n. 5
0
        private void InitializePullToRefreshList()
        {
            InitializeRefreshUpperButton();
            InitializeRefreshLowerButton();
            _pullToRefresh = new PullToRefreshComponent(
                _upperButton, _lowerButton, _listView,
                _uiThreadHandler);

            _pullToRefresh.SetOnReleaseUpperReady(new OnReleaseReadyUpper(this));
            _pullToRefresh.SetOnReleaseLowerReady(new OnReleaseReadyLower(this));
        }
        private void InitializePullToRefreshList()
        {
            InitializeRefreshUpperButton();
            InitializeRefreshLowerButton();
            _pullToRefresh = new PullToRefreshComponent(
                _upperButton, _lowerButton, _listView,
                _uiThreadHandler);

            _pullToRefresh.SetOnReleaseUpperReady(new OnReleaseReadyUpper(this));
            _pullToRefresh.SetOnReleaseLowerReady(new OnReleaseReadyLower(this));
        }
 public bool TouchStopped(MotionEvent motionEvent,
                          PullToRefreshComponent pullToRefreshComponent)
 {
     if (pullToRefreshComponent.GetListTop() > PullToRefreshComponent.MinPullElementHeight)
     {
         pullToRefreshComponent.BeginPullDownRefresh();
     }
     else
     {
         pullToRefreshComponent.RefreshFinished(pullToRefreshComponent.GetOnUpperRefreshAction());
     }
     return true;
 }
Esempio n. 8
0
 public bool TouchStopped(MotionEvent motionEvent,
                          PullToRefreshComponent pullToRefreshComponent)
 {
     if (pullToRefreshComponent.GetListTop() > PullToRefreshComponent.MinPullElementHeight)
     {
         pullToRefreshComponent.BeginPullDownRefresh();
     }
     else
     {
         pullToRefreshComponent.RefreshFinished(pullToRefreshComponent.GetOnUpperRefreshAction());
     }
     return(true);
 }
Esempio n. 9
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);
 }
Esempio n. 11
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);
 }
 public bool TouchStopped(MotionEvent motionEvent,
                          PullToRefreshComponent pullToRefreshComponent)
 {
     return(true);
 }
 public bool HandleMovement(MotionEvent motionEvent,
                            PullToRefreshComponent pullToRefreshComponent)
 {
     return(true);
 }
 public bool TouchStopped(MotionEvent motionEvent, PullToRefreshComponent onTouchListener)
 {
     return(false);
 }
Esempio n. 16
0
 public bool HandleMovement(MotionEvent motionEvent,
                            PullToRefreshComponent pullToRefreshComponent)
 {
     return true;
 }
Esempio n. 17
0
 public bool TouchStopped(MotionEvent motionEvent,
                          PullToRefreshComponent pullToRefreshComponent)
 {
     return true;
 }
Esempio n. 18
0
 public bool TouchStopped(MotionEvent motionEvent, PullToRefreshComponent onTouchListener)
 {
     return false;
 }