-
Notifications
You must be signed in to change notification settings - Fork 401
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
SwipeToRefreshLayout and overscroll of RecyclerView #46
Comments
+1 |
decor.setOverScrollUpdateListener(new IOverScrollUpdateListener() { I made it like this you can listen when the user will over scroll the recyclerview and then setRefreshing(true) of the swipeRefreshLayout |
Thanks for this @MinaMak, I've translated your implementation to Kotlin and for someone looking for a workaround. Hope this could help. In Kotlin, we can achieve this using extension and high-order lambda functions.
And call this with your
|
If RecyclerView is nested to SwipeToRefreshLayout and has Overscroll applied to it, then swipe-to-refresh does not work at all, though overscroll is working. Is it possible to have both swipe-to-refresh and overscroll enabled simultaneously?
The text was updated successfully, but these errors were encountered: