Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

drag and drop of items in listview in android?

Tags:

android

i have a listview with n number of list items. I want to implement drag and drop of items from one position to antother position in the list android?

like image 368
user629872 Avatar asked Sep 05 '11 12:09

user629872


4 Answers

Another implementation:

  • https://github.com/bauerca/drag-sort-listview
like image 165
heycosmo Avatar answered Oct 31 '22 12:10

heycosmo


Here is our drag & drop list. Tt is a direct replacement for ListView and it's very easy to use.

https://github.com/terlici/DragNDropList

like image 45
Stefan Avatar answered Oct 31 '22 14:10

Stefan


In August 2013 Google uploaded a very simple example with a video and the code.

Video: http://www.youtube.com/watch?v=_BZIvjMgH-Q code: http://developer.android.com/shareables/devbytes/ListViewDraggingAnimation.zip

Hope it helps.

like image 3
Sotti Avatar answered Oct 31 '22 13:10

Sotti


Here is what you want a complete example for the Drag and Drop ListView. Download it, built it and Enjoy!!!!!

like image 2
Lalit Poptani Avatar answered Oct 31 '22 13:10

Lalit Poptani