ComposeReorderable icon indicating copy to clipboard operation
ComposeReorderable copied to clipboard

Feature Request - Ability to Drag Items Across Lists

Open masonstevens95 opened this issue 3 years ago • 4 comments

Hello, is it possible to drag items across LazyLists/Grids?

For example on the Readme, dragging a Cat Box to the Dog List.

Is this possible with this library?

masonstevens95 avatar Oct 20 '22 20:10 masonstevens95

I have the same question

GooDiVer avatar Oct 25 '22 12:10 GooDiVer

No sorry, the library is not designed for this.

aclassen avatar Oct 26 '22 23:10 aclassen

Depends on your layout but you could leverage LazyGrid with a two columns layout and use the same idea as I did in https://github.com/aclassen/ComposeReorderable/pull/184 to prevent drag and drop within same list/column.

VeselyJan92 avatar Oct 28 '22 10:10 VeselyJan92

Watch for Drag and drop in Lazy layouts updates in roadmap @masonstevens95

https://developer.android.com/jetpack/androidx/compose-roadmap

VeselyJan92 avatar Nov 09 '22 13:11 VeselyJan92