When I swipe slightly down on the card in my swiperefreshlayout, it thinks I'm trying to refresh. How do I avoid this?
If you have a nested RecyclerView
, for example, named recyclerView
you can call:
recyclerView.setNestedScrollingEnabled(false);
Should stop your SwipeRefreshLayout
from trying to refresh when you swipe down on a nested RecyclerView's child.
Worked for me with the almighty Android Support Library 23.2.
Hope that helps :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With