Beispiel #1
0
        public void OnScrollStateChanged(AbsListView view, ScrollState scrollState)
        {
            mCurrentScrollState = scrollState;

            if (mCurrentScrollState == ScrollState.Idle)
            {
                mBounceHack = false;
            }

            if (mOnScrollListener != null)
            {
                mOnScrollListener.OnScrollStateChanged(view, scrollState);
            }
        }
Beispiel #2
0
 public void OnScrollStateChanged(AbsListView view, [GeneratedEnum] Android.Widget.ScrollState scrollState)
 {
     if (!_listInstance.IsListenerActive)
     {
         return;
     }
     _scrollState = scrollState;
     if (_scrollState == Android.Widget.ScrollState.Fling)
     {
         _listInstance.OnScrollStateChanged(this, Xamarin.Reactive.Event.ScrollState.Fling);
     }
     else if (_scrollState == Android.Widget.ScrollState.TouchScroll)
     {
         _listInstance.OnScrollStateChanged(this, Xamarin.Reactive.Event.ScrollState.TouchScroll);
     }
     else if (_scrollState == Android.Widget.ScrollState.Idle)
     {
         _listInstance.OnScrollStateChanged(this, Xamarin.Reactive.Event.ScrollState.Idle);
     }
 }
    public void OnScrollStateChanged(AbsListView view, ScrollState scrollState)
    {
      mCurrentScrollState = scrollState;

      if (mCurrentScrollState == ScrollState.Idle)
      {
        mBounceHack = false;
      }

      if (mOnScrollListener != null)
      {
        mOnScrollListener.OnScrollStateChanged(view, scrollState);
      }
    }
Beispiel #4
0
 void Android.Widget.AbsListView.IOnScrollListener.OnScrollStateChanged(Android.Widget.AbsListView view, Android.Widget.ScrollState scrollState)
 {
     if (scrollState == Android.Widget.ScrollState.Idle)
     {
         if (mPostsListView.LastVisiblePosition >= mPostsListView.Count - 1)
         {
             CatalogNewsViewModel.MoreNewsCommand.Execute(null);
         }
     }
 }