Esempio n. 1
0
 private void Initialize()
 {
     State            = new PullToRefreshState();
     _listView.Touch += (sender, args) =>
     {
         MotionEvent motionEvent = args.Event;
         if (motionEvent.Action == MotionEventActions.Up)
         {
             InitializeYsHistory();
             State.TouchStopped(motionEvent, this);
         }
         else if (motionEvent.Action == MotionEventActions.Move)
         {
             args.Handled = State.HandleMovement(motionEvent, this);
         }
         args.Handled = false;
     };
 }
 private void Initialize()
 {
     State = new PullToRefreshState();
     _listView.Touch += (sender, args) =>
                           {
                               MotionEvent motionEvent = args.Event;
                               if (motionEvent.Action == MotionEventActions.Up)
                               {
                                   InitializeYsHistory();
                                   State.TouchStopped(motionEvent, this);
                               }
                               else if (motionEvent.Action == MotionEventActions.Move)
                               {
                                   args.Handled = State.HandleMovement(motionEvent, this);
                               }
                               args.Handled = false;
                           };
 }