teksquery
teksquery

Reputation: 151

reordering of listview items by drag and drop using android

How to drag and drop items in Listview for reordering in android?

Upvotes: 15

Views: 40760

Answers (4)

Stefan
Stefan

Reputation: 859

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.

https://github.com/terlici/DragNDropList

Upvotes: 15

Terril Thomas
Terril Thomas

Reputation: 1506

A good example on the topic can be found here: https://github.com/mtparet/Drag-And-Drop-Android

Upvotes: 7

xydev
xydev

Reputation: 3409

Check this.. exactly what you needed. Drag and Drop

Upvotes: 3

Dalbergia
Dalbergia

Reputation: 1699

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.

Upvotes: 5

Related Questions