Mobile apps are touch oriented, and when you want to let a user re-order data in a list the natural gesture is drag and drop. It takes quite a bit of code to implement drag-and-drop list rows with either a ListView or the newer RecyclerView, but there’s a great library you can use named DragSortListView that can add this to your app with a small amount of code.
- [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 making a change in that after I import the library.…
Skill Level Intermediate
Q: Why can't I earn a Certificate of Completion for this course?
A: We publish a new tutorial or tutorials for this course on a regular basis. We are unable to offer a Certificate of Completion because it is an ever-evolving course that is not designed to be completed. Check back often for new movies.
Android App Development: Communicating with the Userwith Joe Marini1h 12m Intermediate
Building Android Apps with Cloud Serviceswith Albert Lo2h 37m Intermediate
Android App Development: Data Persistence Librarieswith Annyce Davis4h 52m Intermediate
New This Week:
1. Android Development Tips Weekly
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.