How to drag and drop items in Listview for reordering in android?
Asked
Active
Viewed 4.0k times
4 Answers
15
Here is our drag & drop list. It is a direct replacement for ListView and it's very easy to use. There are examples of how to use it on the github page.

Stefan
- 849
- 9
- 15
-
1There is cursor parameter passed inside the adaptor. Can u give any sample code that uses this library? – Sampath Kumar Jul 04 '13 at 05:46
7
A good example on the topic can be found here: https://github.com/mtparet/Drag-And-Drop-Android

Luke
- 1,069
- 18
- 28

Terril Thomas
- 1,486
- 13
- 32
5
This has been discussed elsewhere. Try:
Reordering Lists like playlists in the media player
or
Android - drag and drop - list rearrange
Unfortunately, there seems to be no easy way to do it. You'll have to handle touch events at a fairly low level.
3
Check this.. exactly what you needed. Drag and Drop

xydev
- 3,409
- 5
- 34
- 54
-
3This drag and drop example does not work completely. If you ListView has more tiems than fit on the screen, it does not scroll as you try to drag. Use this one instead: https://github.com/commonsguy/cwac-touchlist – Plastic Sturgeon Sep 28 '11 at 21:27