Skip to content
New issue

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

嵌套在VerticalViewPager外面,加载更多变成了下拉刷新 #70

Open
Khaos116 opened this issue May 12, 2020 · 3 comments
Open

Comments

@Khaos116
Copy link

使用版本:
api 'com.billy.android:smart-swipe:1.1.2'
api 'com.billy.android:smart-swipe-x:1.1.0'

加载更多到最后一条,设置可上拉加载,设置为没有更多
image

第一次上拉出现的“已全部加载完成”是正常的,但是在次上拉出现了“下拉刷新”
GIF

@Khaos116
Copy link
Author

大概问题找到了,滑动完成后调用了ClassicHeader的onReset()方法,导致没有更多变成了"下拉刷新”
image

@Khaos116
Copy link
Author

Khaos116 commented May 12, 2020

可以增加判断如果是header才进行重置
image

@Khaos116
Copy link
Author

可以自定义一个footer,重写onReset方法,并在application构建的时候使用自己的footer即可
image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant