{"repo":"aclassen/ComposeReorderable","free":true,"listed":false,"github":"https://github.com/aclassen/ComposeReorderable","clone":"git clone https://github.com/aclassen/ComposeReorderable.git","description":"Enables reordering by drag and drop in Jetpack Compose (Desktop) LazyList & LazyGrid.","language":"Kotlin","stars":1035,"topics":["jetpack-compose","android","compose-desktop"],"license":"Apache-2.0","category":"mobile-apps","readme_excerpt":"Compose LazyList/Grid reorder A Jetpack Compose (Android + Desktop) modifier enabling reordering by drag and drop in a LazyList and LazyGrid. Download How to use - Create a reorderable state by rememberReorderableLazyListState for LazyList or rememberReorderableLazyGridState for LazyGrid - Add the reorderable(state) modifier to your list/grid - Inside the list/grid itemscope create a ReorderableItem(state, key = ) for a keyed lists or ReorderableItem(state, index = ) for a indexed only list. (Animated items only work with keyed lists) - Apply the detectReorderAfterLongPress(state) or detectReorder(state) modifier to the list. If only a drag handle is needed apply the detect modifier to any child composable inside the item layout. ReorderableItem provides the item dragging state, use this to apply elevation , scale etc. The item placement and drag cancelled animation can be changed or disabled by dragCancelledAnimation and defaultDraggingModifier Check out the sample app for different implementation samples. Notes It's a known issue that the first visible item does not animate. License","default_branch":null,"files":null,"tree":[],"storefront":"/r/aclassen","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/aclassen/ComposeReorderable/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}