android.widget.ScrollView.overScrollBy()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(7.1k)|赞(0)|评价(0)|浏览(167)

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

ScrollView.overScrollBy介绍

暂无

代码示例

代码示例来源:origin: joyoyao/superCleanMaster

@Override
protected boolean overScrollBy(int deltaX, int deltaY, int scrollX, int scrollY, int scrollRangeX, int scrollRangeY,
                int maxOverScrollX, int maxOverScrollY, boolean isTouchEvent) {
  return super.overScrollBy(
      deltaX,
      deltaY,
      scrollX,
      scrollY,
      scrollRangeX,
      scrollRangeY,
      mIsOverScrollEnabled ? maxOverScrollX : 0,
      mIsOverScrollEnabled ? maxOverScrollY : 0,
      isTouchEvent);
}

代码示例来源: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(PullToRefreshScrollView.this, deltaX, scrollX, deltaY, scrollY,
      getScrollRange(), 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(PullToRefreshScrollView.this, deltaX, scrollX, deltaY, scrollY,
      getScrollRange(), 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(PullToRefreshScrollView.this, deltaX, scrollX, deltaY, scrollY,
      getScrollRange(), 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(PullToRefreshScrollView.this, deltaX, scrollX, deltaY, scrollY,
      getScrollRange(), 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(PullToRefreshScrollView.this, deltaX, scrollX, deltaY, scrollY,
      getScrollRange(), isTouchEvent);
  return returnValue;
}

代码示例来源:origin: klaszlo8207/StretchTopViewExample

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

代码示例来源: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(PullToRefreshScrollView.this, deltaX, scrollX, deltaY, scrollY,
      getScrollRange(), 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(PullToRefreshScrollView.this, deltaX, scrollX, deltaY, scrollY,
      getScrollRange(), 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(PullToRefreshScrollView.this, deltaX, scrollX, deltaY, scrollY,
      getScrollRange(), 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(PullToRefreshScrollView.this, deltaX, scrollX, deltaY, scrollY,
      getScrollRange(), 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(PullToRefreshScrollView.this, deltaX, scrollX, deltaY, scrollY,
      getScrollRange(), 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(PullToRefreshScrollView.this, deltaX, scrollX, deltaY, scrollY,
      getScrollRange(), isTouchEvent);
  return returnValue;
}

代码示例来源:origin: ahmclishihao/gankS

@Override
protected boolean overScrollBy(int deltaX, int deltaY, int scrollX, int scrollY, int scrollRangeX, int scrollRangeY, int maxOverScrollX, int maxOverScrollY, boolean isTouchEvent) {
  // 让内部的子控件统一向下移动,只需判断是否为手拖动即可,注意deltaY需要取反
  if (isTouchEvent) {
    ViewCompat.setTranslationY(mChild, mChild.getTranslationY() - deltaY/3);
  }
  return super.overScrollBy(deltaX, deltaY, scrollX, scrollY, scrollRangeX, scrollRangeY, maxOverScrollX, maxOverScrollY, isTouchEvent);
}

代码示例来源:origin: CrazyPumPkin/DragMoreScrollView

return super.overScrollBy(deltaX, deltaY, scrollX, scrollY, scrollRangeX, scrollRangeY, maxOverScrollX, maxOverScrollY, isTouchEvent);

相关文章

ScrollView类方法