Moving Views In Android - Part 2, Drag and Drop


For a write-up on this demo, see "Moving Views In Android - Part 2, Drag and Drop"  on Bill Lahti's blog.

To download the source code for this demo app, click the attachment link below. DragView-141119.zip is an improved version of this demo. Its menu allows you to change what kind of touch starts a drag operation. You can switch between a long click (touch) and any touch.

(Note: The best place to download the zip is on this page. Click the download icon below to download. In some browsers (Chrome), if you click the zip file name first, you will find yourself on a page where the download links do not work. )

ċ
DragView-141119.zip
(153k)
Bill Lahti,
Nov 19, 2014, 6:30 PM