Android 4 Drag & Drop horizontally

I can successfully drag n items using the View.startDrag method.

But I want to limit the drag and drop only along the X axis with some offset of the Y axis. Currently, when the user started to drag, he can move this view anywhere on the screen so that the drag appearance can be limited so that the user cannot move it up and down.

Thanks.

+4
source share

All Articles