0

I have implemented Drag and Drop functionality using ItemTouchHelper in GridView. I used the idea from Paul Burke I am able to re order and swap the items but i need to add another functionality to create a folder on dropping one file/item over another(dropping one grid item over another) .In the current implementation onItemMove is getting called while i hover one item to another ,I need to swap items only if we are hovering the dragged item in the middle of other two grid items .Is there any way to implement the same using ItemTouch Helper or i need to move to Android Default Drag and Drop Framework.

Sujiz
  • 1,720
  • 1
  • 20
  • 30
  • The stock recycler-helper code Google provides will allow movement within the recycler: up down, and left, right . It will also allow swipe as if deleting. To achieve what you want you're going to have use onStartDragListener and implement that yourself. – Martin Aug 18 '16 at 14:23
  • so instead of using ItemTouchHelper i need to implement the drag listner right ? – Sujiz Aug 19 '16 at 05:31
  • @Martin i'm having same doubt as Sujiz , Can you elaborate , what you are suggesting to do so ? – Tejas Pandya Mar 28 '18 at 07:15
  • @Sujiz have you found any solution? – Ronak Gadhia Mar 15 '19 at 05:43

0 Answers0