How can I create a list where I can rearrange list items with dragging list rows to another row and so on (to change to order)?
Just like on the HTC Hero in the clocks app where you can rearrange the order of clocks?
Wouter
How can I create a list where I can rearrange list items with dragging list rows to another row and so on (to change to order)?
Just like on the HTC Hero in the clocks app where you can rearrange the order of clocks?
Wouter
Hint: download the android sources and have a look how the Music app (packages\apps\Music
) implements this functionality.
It's in platform/packages/apps/Music/src/com/android/music/TouchInterceptor.java. Here's a direct link:
if you have found drag and drop for genereic once can you help me .. music aap has drop listener implemented in a complex way
Even though this question is already answered. I struggled using the music app as an example, so I created a simple Drag and Drop List project to help others that can be found here