Thanks a million Jeff.
I did noticed a while ago that I could re-order items in the music player, but I never bothered to look at the source code because I didn't think it was done using the android framework API, I thought it was just custom java code like the core OS. I will definitely look into this code. On Jun 16, 4:41 pm, Jeff Sharkey <[email protected]> wrote: > 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 customListView: > > http://android.git.kernel.org/?p=platform/packages/apps/Music.git;a=b...http://android.git.kernel.org/?p=platform/packages/apps/Music.git;a=b... > > 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=b... > > Hope this helps. > > j > > On Mon, Jun 15, 2009 at 3:10 PM, Walter<[email protected]> wrote: > > > Has anyone been able to create asortableListView(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 -~----------~----~----~----~------~----~------~--~---

