Skip to content

Demo android app showing an easy way to implement drag-n-drop for a LazyColumn. Works in Compose for iOS via Kotlin Multi-Platform

Notifications You must be signed in to change notification settings

realityexpander/DragDropColumnCompose

Repository files navigation

DragDropColumnCompose

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.

fixed-Screen_recording_20240522_143534.mp4

fixed-Screen_recording_20240522_143534.mp4

Reference for code from Stack Overflow from Jurij Pitulja: https://stackoverflow.com/questions/64913067/reorder-lazycolumn-items-with-drag-drop

Updated to be pure Compose in February 2024

Updated to work with Kotlin Multi-Platform (KMP) and Compose by removing the Android specific code and replacing it with Compose specific code.

About

Demo android app showing an easy way to implement drag-n-drop for a LazyColumn. Works in Compose for iOS via Kotlin Multi-Platform

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages