RecyclerViewEnhanced icon indicating copy to clipboard operation
RecyclerViewEnhanced copied to clipboard

Сonflict with SwipeRefreshLayout

Open krawa opened this issue 9 years ago • 6 comments

If RecyclerView with SwipeRefreshLayout then swipes conflicts

krawa avatar Aug 22 '16 09:08 krawa

+1

JakeWoki avatar Aug 25 '16 08:08 JakeWoki

i have this problem too

liuhui19991 avatar Sep 02 '16 01:09 liuhui19991

+1 Anyway to disable auto-close ?

Hiike avatar Sep 07 '16 08:09 Hiike

https://github.com/loopeer/itemtouchhelper-extension

JakeWoki avatar Sep 08 '16 01:09 JakeWoki

I think I solved the issue, Copy paste the code in your project and in the RecyclerTouchListener's constructor, give it the SwipeRefreshLayout you are using.

Then in the method handleTouchEvent, In the case ACTION_CANCEL, and ACTION_UP mSwipeRefreshLayout.setEnabled(true)

In the case ACTION_MOVE, right under the condition: // This block moves the foreground along with the finger when swiping if (swipeable && isFgSwiping && !unSwipeableRows.contains(touchedPosition)) { mSwipeRefreshLayout.setEnabled(false) }

Hiike avatar Sep 08 '16 07:09 Hiike

Forked a fix for this here per https://github.com/Hiike comment github.com/SOFSPEEL/RecyclerViewEnhanced

SOFSPEEL avatar Oct 29 '19 02:10 SOFSPEEL