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

x33g5p2x  于2022-01-20 转载在 其他  
字(6.5k)|赞(0)|评价(0)|浏览(173)

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

HorizontalScrollView.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(PullToRefreshHorizontalScrollView.this, deltaX, scrollX, deltaY, scrollY,
      getScrollRange(), isTouchEvent);
  return returnValue;
}

代码示例来源:origin: smuyyh/SprintNBA

@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, mMaxXOverscrollDistance, maxOverScrollY, isTouchEvent);       
}

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

相关文章

HorizontalScrollView类方法