I'm very surprised there is such a small amount of info on drag and drop sorting with a cursor adapter and list adapter.
The closest post I have found on stackoverflow is this one:
https://mcmap.net/q/661418/-drag-n-drop-utilizing-simple-cursor
But, it's not clear to me how to implement what CommonsWare suggests - clarification would be very helpful.
So far I am binding the cursor data to a list adapter and setting this as follows:
mMyCursorAdapter = new MyCursorAdapter(getActivity(), null);
setListAdapter(mMyCursorAdapter);
getLoaderManager().initLoader(0, null, this);
The list is generated but I now wish to add drag and drop functionality to the list items.
I would like to know the best way to go about this from an architectural point of view and any pointers as to how to go about the development of the core functionality would also be useful.
ListView
in Android. I had a library for this, which I discontinued after I could no longer reasonably maintain it, and it would not work with aCursorAdapter
anyway. You can find other drag-and-dropListView
implementations on the Internet, though I doubt any of those will work with aCursorAdapter
. – Toxophilite