We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BouncingJellyView类中onSizeChanged方法中获取可滚动的内容的高度contentHeight始终为0,判断方法没有用,当屏幕没有满屏时向上滑动,有明显的抖动现象。
The text was updated successfully, but these errors were encountered:
能否贴上你的代码?
Sorry, something went wrong.
没有代码啊,只在布局里用包了一层LinearLayout布局。只要屏幕没充满不能滑动的情况下上滑就有这种情况。 protected void onSizeChanged(int w, int h, int oldw, int oldh) { super.onSizeChanged(w, h, oldw, oldh); int contentHeight = this.getChildAt(0).getHeight(); if(contentHeight > 0 && contentHeight <= ScreenUtils.getScreenHeight(this.getContext())) { this.mBouncingType = 1; }
}
这个方法的contentHeight高度就是0,你把demo的数据减少几条就可以试
该问题已修复,可以查看一下最新版本。
ok
No branches or pull requests
BouncingJellyView类中onSizeChanged方法中获取可滚动的内容的高度contentHeight始终为0,判断方法没有用,当屏幕没有满屏时向上滑动,有明显的抖动现象。
The text was updated successfully, but these errors were encountered: