Over a million developers have joined DZone.
Gold Partner

Android Library: Drag to Sort and Swipe to Delete List View

· Mobile Zone

The Mobile Zone is brought to you in partnership with Apptimize.  Discover the 5 little know reasons your app is underperforming and how to better understand your customers mobile needs.

Here's a pretty nice custom list view that allows the user to sort the items in the list view by dragging rows up and down, or removing a row dynamically with a side swipe.

The source can be found on Github here. The list view runs very smoothly. Carl has also thrown up a simple demo app to show it off, too. Even if you don't need a list view with this type of functionality at the moment, it's a good custom widget to keep in mind for when you do need it.

The repo is fairly active as well. If you have any suggestions or requests, now would be the time to get your comments up there.

The Mobile Zone is brought to you in partnership with Apptimize.  Learn more about app optimization methods that help teams identify user preferences, decide the next iterative changes to make, and validate them through testing.

Topics:
java,mobile,framework

Published at DZone with permission of Isaac Taylor , DZone MVB .

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}