bauerca/drag-sort-listview — pull request #33 by orac (2012-10-04 14:42:39+00:00)
Title: Let the ListView handle item clicks and long-clicks

Fixes issue #13 and provides a starting point for fixing issue #6. The touch-handling code moves around a lot, but it's really pretty similar. onInterceptTouchEvent and onTouchEvent now just forward events (when appropriate) to a GestureDetector, and the callbacks from the GestureDetector do the real dragging and arranging work. The crucial change is that onInterceptTouchEvent returns false most of the time, which lets AbsListView do its item click detection the way it usually does.

There's definitely more to do after this: slide-to-remove isn't any better than it was, and should be easily improved now; also, with drag-to-remove turned on and no drag listener, it should still be possible to scroll the list (like in the recent apps list), but currently isn't.