@Override
 public final boolean isPullToRefreshOverScrollEnabled() {
   if (VERSION.SDK_INT >= VERSION_CODES.GINGERBREAD) {
     return mOverScrollEnabled && OverscrollHelper.isAndroidOverScrollEnabled(mRefreshableView);
   }
   return false;
 }
Пример #2
0
    @Override
    protected boolean overScrollBy(
        int deltaX,
        int deltaY,
        int scrollX,
        int scrollY,
        int scrollRangeX,
        int scrollRangeY,
        int maxOverScrollX,
        int maxOverScrollY,
        boolean isTouchEvent) {

      final boolean returnValue =
          super.overScrollBy(
              deltaX,
              deltaY,
              scrollX,
              scrollY,
              scrollRangeX,
              scrollRangeY,
              maxOverScrollX,
              maxOverScrollY,
              isTouchEvent);

      // Does all of the hard work...
      OverscrollHelper.overScrollBy(
          PullToRefreshListView.this, deltaX, scrollX, deltaY, scrollY, isTouchEvent);

      return returnValue;
    }
Пример #3
0
    @Override
    protected boolean overScrollBy(
        int deltaX,
        int deltaY,
        int scrollX,
        int scrollY,
        int scrollRangeX,
        int scrollRangeY,
        int maxOverScrollX,
        int maxOverScrollY,
        boolean isTouchEvent) {

      final boolean returnValue =
          super.overScrollBy(
              deltaX,
              deltaY,
              scrollX,
              scrollY,
              scrollRangeX,
              scrollRangeY,
              maxOverScrollX,
              maxOverScrollY,
              isTouchEvent);

      // Does all of the hard work...
      OverscrollHelper.overScrollBy(
          PullToRefreshWebView.this,
          deltaX,
          scrollX,
          deltaY,
          scrollY,
          getScrollRange(),
          OVERSCROLL_FUZZY_THRESHOLD,
          OVERSCROLL_SCALE_FACTOR,
          isTouchEvent);

      return returnValue;
    }
Пример #4
0
 @Override
 public final boolean isPullToRefreshOverScrollEnabled() {
   return VERSION.SDK_INT >= 9
       && mOverScrollEnabled
       && OverscrollHelper.isAndroidOverScrollEnabled(mRefreshableView);
 }