RecyclerViewEnhanced
RecyclerViewEnhanced copied to clipboard
Сonflict with SwipeRefreshLayout
If RecyclerView with SwipeRefreshLayout then swipes conflicts
+1
i have this problem too
+1 Anyway to disable auto-close ?
https://github.com/loopeer/itemtouchhelper-extension
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) }
Forked a fix for this here per https://github.com/Hiike comment github.com/SOFSPEEL/RecyclerViewEnhanced