@Override
public void scrollTo(@Px int x, @Px int y) {
if (y >= mMaxScrollY) {
y = mMaxScrollY;
} else if (y <= 0) {
y = 0;
}
if (mOnCollapsingListener != null) {
float progress = 1.0f - (float) y / (float) mMaxScrollY;
if (BuildConfig.DEBUG) Log.d(TAG, "collapsing progress = " + progress);
mOnCollapsingListener.onCollapsing(progress);
}
mCurrentScrollY = y;
super.scrollTo(x, y);
}
ZhihuUserProfileLayout.java 文件源码
java
阅读 47
收藏 0
点赞 0
评论 0
项目:ZhihuUserProfile
作者:
评论列表
文章目录