Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

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

DZone's Guide to

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

· Mobile Zone
Free Resource

Launching an app doesn’t need to be daunting. Whether you’re just getting started or need a refresher on mobile app testing best practices, this guide is your resource! Brought to you in partnership with Perfecto

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.

Keep up with the latest DevTest Jargon with the latest Mobile DevTest Dictionary. Brought to you in partnership with Perfecto.

Topics:
java ,mobile ,framework

Published at DZone with permission of Isaac Taylor, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

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

{{ parent.tldr }}

{{ parent.urlSource.name }}