android.webkit.WebView.overScrollBy()方法的使用及代码示例

x33g5p2x  于2022-02-02 转载在 其他  
字(6.9k)|赞(0)|评价(0)|浏览(251)

本文整理了Java中android.webkit.WebView.overScrollBy()方法的一些代码示例,展示了WebView.overScrollBy()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebView.overScrollBy()方法的具体详情如下:
包路径:android.webkit.WebView
类名称:WebView
方法名:overScrollBy

WebView.overScrollBy介绍

暂无

代码示例

代码示例来源:origin: tianshaojie/AndroidFine

@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;
}

代码示例来源:origin: open-android/PullToRefresh

@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;
}

代码示例来源:origin: Wan7451/Wan_RecycleViewAdapter

@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;
}

代码示例来源:origin: Uphie/ONE-Unofficial

@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;
}

代码示例来源:origin: huangfangyi/FanXin

@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;
}

代码示例来源:origin: gdpancheng/LoonAndroid3

@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;
}

代码示例来源:origin: myxh/CoolShopping

@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;
}

代码示例来源:origin: shanyao0/SimpleApp

@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;
}

代码示例来源:origin: AndroidHensen/YaNi

@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;
}

代码示例来源:origin: kaku2015/WeatherAlarmClock

@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;
}

代码示例来源:origin: alienjun/AJWaveRefreshForAndroid

@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;
}

代码示例来源:origin: linxin6560/DetailScrollView

@Override
  protected boolean overScrollBy(int deltaX, int deltaY, int scrollX, int scrollY, int scrollRangeX, int scrollRangeY, int maxOverScrollX, int maxOverScrollY, boolean isTouchEvent) {
    boolean b = super.overScrollBy(deltaX, deltaY, scrollX, scrollY, scrollRangeX, scrollRangeY, maxOverScrollX, maxOverScrollY, isTouchEvent);
    if (mScrollBarShowListener != null) {
      mScrollBarShowListener.onShow();
    }
    if (mHelper != null) {
      mHelper.overScrollBy(deltaY, scrollY, scrollRangeY, isTouchEvent);
    }
    return b;
  }
}

相关文章

WebView类方法