From the course: Android Development Tips

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Display draggable rows in a list of data

Display draggable rows in a list of data - Android Tutorial

From the course: Android Development Tips

Display draggable rows in a list of data

- [Instructor] Mobile apps are touch oriented. If you want to let a user reorder data in a list, the natural gesture is drag and drop. It takes quite a bit of code to implement this on your own, but there's a great library that you can use to add drag and drop features to a list view component with a small amount of code. It's called drag drop list view, and it's available on this GitHub site. To get started with it, download the project as a zip file. Now, I've already done this, and I'll go to my downloads directory, and I'll find the zip file there. And I'm going to extract the contents of the zip file, to a folder on my desktop. On Windows, I can drag the directory to extract it. Next, I'll go to the new directory on my desktop, and show that there's a subdirectory called library. And these are the files that you're concerned with. I'll also open up the Android manifest file in a text editor, and show that the target SDK and the minimum SDK are both set to API level seven. I'll be…

Contents