Demo android app showing one way to implement drag-n-drop for a LazyColumn. This same code will also work in KMP (Kotlin Multi-Platform) for iOS, Android, Desktop & Web.
- Video Explainer on YouTube: https://youtu.be/vdbqlkKENi4
- Video explaining fix (current code reflects fix): https://youtu.be/gQD6pjqhFAI
fixed-Screen_recording_20240522_143534.mp4
fixed-Screen_recording_20240522_143534.mp4
- Join the KMP Developers Group:
Reference for code from Stack Overflow from Jurij Pitulja: https://stackoverflow.com/questions/64913067/reorder-lazycolumn-items-with-drag-drop
Updated to work with Kotlin Multi-Platform (KMP) and Compose by removing the Android specific code and replacing it with Compose specific code.