Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can you manually reorder a ListView in Android?

I have a ListView in Android that needs to have the ability to be manually reordered. An example would be within Android's Music Player application, when you can change the order of tracks in a playlist. I know how to programmatically change the order of a ListView, but not how to do it in regards to a touch and slide approach that can be found in the Music Player application.

Thanks in advance,

groomsy.

like image 806
groomsy Avatar asked May 24 '10 17:05

groomsy


1 Answers

There's nothing in the framework for this at the moment, you'll need to look at the Music source code to get an idea of how to implement this. You can also, of course, copy over parts of the relevant implementation as you see fit.

like image 166
Roman Nurik Avatar answered Sep 25 '22 17:09

Roman Nurik