Reorderable icon indicating copy to clipboard operation
Reorderable copied to clipboard

Move or reorder items with animation programatically

Open mianaliasjad opened this issue 1 year ago • 1 comments

I wanna achieve such behavior that it moves the item from one index to another without user interaction, i simply provide two indexes where I tell i wanna move the item from this index to the destination index.

Does that function already exist? if not it will be a great edition.

mianaliasjad avatar Oct 02 '24 07:10 mianaliasjad

In a LazyColumn or LazyRow, you can do that by adding Modifier.animateItem() to every item in the list then change the items' order.

Calvin-LL avatar Oct 02 '24 07:10 Calvin-LL