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
如果scrollview 里的内容为空或者子view的个数不足以向下滑动的时候。 无法下拉刷新。 暂时个人的解决办法: if (!canChildScrollDown()) {//若是底部不能滑动,则yDiff是负值,取反后与mTouchSlop做比较。 if (yDiff < 0) { yDiff = -yDiff; } } 这里。对yDiff做一个判负。就可以解决了。期待更新~~~ 上面的方法不对。 sorry 。高兴的太早了。会导致向上滑的时候引起refresh动作 下面的方法才对。我测试过程中。没什么问题。 if(!canChildScrollDown()){//若是底部不能滑动,则yDiff是负值,取反后与mTouchSlop做比较。
if (!canChildScrollDown()) {//若是底部不能滑动,则yDiff是负值,取反后与mTouchSlop做比较。 if (yDiff < 0) { yDiff = -yDiff; } }
if (yDiff < 0 || canChildScrollUp()) { yDiff = -yDiff; } }
这里加上一个判断。 这样就好了
The text was updated successfully, but these errors were encountered:
谢谢哥,你是我大恩人!!!!!
Sorry, something went wrong.
这个是正解,我搞了半天都好不了,还好楼主666
No branches or pull requests
如果scrollview 里的内容为空或者子view的个数不足以向下滑动的时候。
无法下拉刷新。
暂时个人的解决办法:
if (!canChildScrollDown()) {//若是底部不能滑动,则yDiff是负值,取反后与mTouchSlop做比较。 if (yDiff < 0) { yDiff = -yDiff; } }
这里。对yDiff做一个判负。就可以解决了。期待更新~~~
上面的方法不对。 sorry 。高兴的太早了。会导致向上滑的时候引起refresh动作
下面的方法才对。我测试过程中。没什么问题。
if(!canChildScrollDown()){//若是底部不能滑动,则yDiff是负值,取反后与mTouchSlop做比较。
这里加上一个判断。 这样就好了
The text was updated successfully, but these errors were encountered: