android.support.v4.widget.NestedScrollView.onScrollChanged()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(154)

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

NestedScrollView.onScrollChanged介绍

暂无

代码示例

代码示例来源:origin: facebook/litho

@Override
protected void onScrollChanged(int l, int t, int oldl, int oldt) {
 super.onScrollChanged(l, t, oldl, oldt);
 if (mIsIncrementalMountEnabled) {
  mLithoView.performIncrementalMount();
 }
 if (mScrollPosition != null) {
  mScrollPosition.y = getScrollY();
 }
}

代码示例来源:origin: Rukey7/MvpApp

@Override
protected void onScrollChanged(int l, int t, int oldl, int oldt) {
  super.onScrollChanged(l, t, oldl, oldt);
  if (t >= (getChildAt(0).getMeasuredHeight() - getHeight()) && mPullListener != null) {
    mPullListener.isDoPull();
  }
}

代码示例来源:origin: bxbxbai/ZhuanLan

@Override
protected void onScrollChanged(int l, int t, int oldl, int oldt) {
  super.onScrollChanged(l, t, oldl, oldt);
  for (OnScrollListener listener : listenerList) {
    listener.onScroll(t - oldt);
  }
}

代码示例来源:origin: whyalwaysmea/BigBoom

@Override
protected void onScrollChanged(int l, int t, int oldl, int oldt) {
  super.onScrollChanged(l, t, oldl, oldt);
  doTheStickyThing();
}

代码示例来源:origin: youlookwhat/ScrollShapeUI

@Override
protected void onScrollChanged(int l, int t, int oldl, int oldt) {
  if (scrollInterface != null) {
    scrollInterface.onScrollChange(l, t, oldl, oldt);
  }
  super.onScrollChanged(l, t, oldl, oldt);
}

代码示例来源:origin: dom4j1/Red

@Override
protected void onScrollChanged(int l, int t, int oldl, int oldt) {
  super.onScrollChanged(l, t, oldl, oldt);
  web.onSChanged(l, t, oldl, oldt);
}

代码示例来源:origin: wzmyyj/ZYMK

@Override
  protected void onScrollChanged(int l, int t, int oldl, int oldt) {
    super.onScrollChanged(l, t, oldl, oldt);

    float scale = t * 1.0f / mUpHeight;// 0`1
//        float upAlpha = (1 - 1.2f * scale);
//        mTv2.setText("" + t / 2);
//        mTv.setText("" + t + "   " + mUpHeight);
//
    mBg.setTranslationY(t / 2);

    mTop.setTranslationY(t);
    mTop.getChildAt(1).setAlpha(scale);

    if (t >= mUpHeight) {
      mTab.setTranslationY(t - mUpHeight);
    } else {
      mTab.setTranslationY(0);
    }

  }

相关文章