android-Ultra-Pull-To-Refresh icon indicating copy to clipboard operation
android-Ultra-Pull-To-Refresh copied to clipboard

disable pull to refresh when item clicking or touching?

Open jsdevjournal opened this issue 9 years ago • 2 comments

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.

jsdevjournal avatar Jul 06 '15 12:07 jsdevjournal

hi,did you solve this problem?i have the same issue.

pzhangleo avatar Jul 21 '16 07:07 pzhangleo

recyclerView.setOnTouchListener((view, motionEvent) -> { swipeRefresh.setEnabled(motionEvent.getAction() == MotionEvent.ACTION_UP); return false; }); It will resolve the problem

ngoctan95 avatar Mar 14 '19 02:03 ngoctan95