The Music app can reorder a playlist of songs, and its source code is available. It might take a little bit of digging since it's intertwined with Music-specific code, but here are the important parts:
TouchInterceptor, which is a custom ListView: http://android.git.kernel.org/?p=platform/packages/apps/Music.git;a=blob;f=src/com/android/music/TouchInterceptor.java;hb=cupcake http://android.git.kernel.org/?p=platform/packages/apps/Music.git;a=blob;f=res/layout/media_picker_activity.xml;hb=cupcake TrackBrowserActivity, which uses TouchInterceptor. In particular, mEditMode is what enables the reorder mode: http://android.git.kernel.org/?p=platform/packages/apps/Music.git;a=blob;f=src/com/android/music/TrackBrowserActivity.java;hb=cupcake Hope this helps. j On Mon, Jun 15, 2009 at 3:10 PM, Walter<[email protected]> wrote: > > Has anyone been able to create a sortable ListView (one where you can > drag items around to change their order)? > > > > -- Jeff Sharkey [email protected] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

