Swipe or Slide and Drag and Drop items in RecyclerView
Vložit
- čas přidán 29. 07. 2024
- Hello, in this video, I’ll be showing you how to add swipe and drag gesture events to a RecyclerView.
Download project here:
codeible.com/coursefiles/swip...
View on Codeible:
codeible.com/view/videotutori...
0:00 - Intro
0:23 - Attaching the ItemTouchHelper
1:04 - GetMovementFlags & MakeMovementFlags
2:02 - Adding Swipe events & gestures
2:28 - Multi-Direction Support
3:04 - Adding Drag and Drop gestures
3:31 - Removing and animating items on Swipe
4:59 - Swapping items with Drag and Drop
6:20 - Results
If you find this video helpful, please Like, Share, and Subscribe to support the channel!
Support Codeible on Patreon!
/ codeible
Reddit:
/ codeible
Follow on Pinterest:
/ codeible
Follow on Instagram:
/ codeibleig
Follow on Twitter:
intent/follow?ori...
Your videos are simple, updated and easy to understand! Subscribed, Thanks in advance !
Thank you Sir
Obvious and Clear
Thanks for great instruction.
Gratitude Well Discussed
But, how to swap two item moving the the targeted item to the dragged item's position? I don't want the targeted item to the next position.
Why java? 😂
🌈?