6

Possible Duplicate:
Android GridView reorder elements via Drag and Drop

Can anyone give me some link from where I can learn Drag and Drop inside Android GridView.

Community
  • 1
  • 1
Bhabani Shankar
  • 1,267
  • 4
  • 22
  • 41
  • Maybe it helps to you: [Another drag-n-drop question][1] [1]: http://stackoverflow.com/questions/7146639/android-gridview-reorder-elements-via-drag-and-drop/7413757#7413757 – Dmytro Boichenko Sep 26 '11 at 12:06
  • You asked for a link, here is a link: http://www.youtube.com/watch?v=m4yktX3SWSs . Source code link on Google code, posted under video, in description. – radhoo Nov 24 '13 at 23:42

2 Answers2

12

For drag and drop icons in grid view,

you can refer following tutorial...

It is very helpful for it.

Drag-Drop for an Android GridView

Chirag_CID
  • 2,224
  • 1
  • 24
  • 33
  • [Thia is a good example](http://blahti.wordpress.com/2011/02/10/moving-views-part-3/) but we are force to use itemcell, @Chirag_CID how to implement the drag and drop in gridview item which gridview which are already filled and there a drop zone where you drop your files – Ashish Dwivedi May 22 '12 at 10:19
  • late answer, but for drop zone this might help: http://code.google.com/p/android-gridview-drag-and-drop/ , but you might need to modify the code according to your needs, as this drop zone deletes the item dropped into it. – radhoo Nov 24 '13 at 23:44
4

A little late to the party, here, but you might be able to use a library I wrote for android called DraggableGridView:

https://github.com/thquinn/DraggableGridView

It's an extension of ViewGroup. Long click to drag, includes animation, etc.

Tom Quinn
  • 614
  • 4
  • 17