Android Drag-n-Drop List View

Eric Harlow has come up with a nice drag-n-drop widget that is cool and easy to understand. You can find more about it here.

I have customized it such that user can drag-n-drop an item from a list view only when user has pointed his finger/ stylus/… at the dragger object which is usually to the left of item. If user tries to drag the item by pointing his finger elsewhere, the drag won’t happen. You can find this updated source here. Play with it and extend it!

About these ads

4 responses to this post.

  1. Posted by Stu Padasso on February 29, 2012 at 7:05 am

    Need to add code to allow user to scoll when dragging. Good if only 7 items. Bad if you have 250 items.

    Reply

  2. Posted by Bobby White on July 27, 2012 at 10:18 pm

    Could you update the link please?

    Reply

  3. Posted by Aditya on August 27, 2012 at 2:06 pm

    Hi
    Could you please Update the Link the link provided is not working anymore.

    Reply

  4. Posted by Ankit on September 13, 2012 at 6:55 am

    not able to download your source code

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: