Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Learn how to implement advanced RecyclerView functionality using ItemTouchHelper in this 21-minute tutorial. Discover techniques for adding swipe-to-delete, long-press highlighting, and drag-and-rearrange features to your Android app's RecyclerView. Explore the implementation of a custom ItemTouchHelper callback, covering topics such as movement flags, onMove and onSwipe methods, gesture detection, and drag event handling. Follow along with provided code examples and gain practical insights into enhancing user interaction with RecyclerView items. Perfect for Android developers looking to improve their skills in list manipulation and touch gestures.
Syllabus
Introduction
Swipe RecyclerView
Overview
ItemTouchHelper Adapter
ItemTouchHelper Class
Implement Override Methods
Movement Flags
OnMove
OnSwipe
View Holder
Gesture Detector
Setup of Gesture Detector
Setup of OnTouchListener
Start Drag Event
ItemTouchHelper
Testing
Troubleshooting
Taught by
CodingWithMitch