Drag-Sort Demos

Drag-Sort Demos

5,000 - 10,000 downloads

Add this app to your lists
View bigger - Drag-Sort Demos for Android screenshot
View bigger - Drag-Sort Demos for Android screenshot
View bigger - Drag-Sort Demos for Android screenshot
View bigger - Drag-Sort Demos for Android screenshot
This is a demo app for the DragSortListView library. The project is hosted on GitHub with repo name: drag-sort-listview.

DragSortListView is an extension of Android's ListView widget that mediates drag-and-drop reordering of list items. Its primary purpose is to provide an empty "drop slot" that tracks the dragged item, effectively reordering the list on-the-fly. DragSortListView also handles the tricky task of scrolling while dragging items over a long list. Animated transitions give the process a seamless and intuitive feel.

Several convenience features accompany the basic functionality described above. The most common drag initiation and item removal techniques have been implemented for you and are accessed through simple XML attributes:

• Drag initiation: on touch, on drag, on long-press

• Item removal: on click, on fling, on slide

The first demo, "Basic usage playground," exposes the basic features of the library through the menu. You can dynamically change drag initiation and item removal methods and add headers/footers to the list. The rest of the demos address more advanced usage.

As you know, issues with the library that are voiced in the comments will go unnoticed and left to wither. Please open an issue ticket on the GitHub project page, or email me directly. Thanks and happy dragging!

Tags: how to sort listview items dragged in, drag and drop in listview, swipelistview, listview drag, drag sort, listview sortable, listview drag drop and swipe to delete in, listview drag drop animation, drag sort demo, listview sortable drag.

Recently changed in this version

0.5.0:
- Support for checkable list items.

0.4.1:
- Bugfix to address Play Store crash report.

0.4.0:
- Remove and drop animations.


Comments and ratings for Drag-Sort Demos
  • (77 stars)

    by Betty Raginis on 06/02/2014

    mix rock mix RocknRolla and country

  • (77 stars)

    by Pete Cornish on 31/12/2013

    Buttery smooth :)

  • (77 stars)

    by Naveed Ali on 20/11/2013

    good

  • (77 stars)

    by Yisroel Forta on 30/06/2013

    Just implemented in my app, truly great. Thanks.

  • (77 stars)

    by Srdjan Dakic on 11/06/2013

    Awesome

  • (77 stars)

    by Prateek Arora on 28/05/2013

    I have been looking to implement drag n drop .. had to play arnd with google music app... but this is so much better... handles drag whe list becomes scrollable so well .. thank you so much

  • (77 stars)

    by Giorgio Aresu on 10/05/2013

    Exactly what I was looking for!! Perfect!