android-Ultra-Pull-To-Refresh
android-Ultra-Pull-To-Refresh copied to clipboard
disable pull to refresh when item clicking or touching?
Hi, i have some issue. when i click recyclerview item, pull to refresh will be pull down if my finger try to click and swipe down a little bit, that makes pull to refresh will cancel my item click event. This can happen when im of the top of recyclerview and checkCanDoRefresh return true.
how can i avoid this? thank you.
hi,did you solve this problem?i have the same issue.
recyclerView.setOnTouchListener((view, motionEvent) -> { swipeRefresh.setEnabled(motionEvent.getAction() == MotionEvent.ACTION_UP); return false; }); It will resolve the problem