ScrollView: Drag and Sort

Hi friends!

For my Game, I need to Implement a ScrollView containing a array of objects which can be dragged and dropped around to change the order of the array.

  • the objects in the array should move dynamically, depeding ob the position of the dragged object
  • droping the object should place it in between other objects and rearrange the array

Such feature can be observed in iOs or Android, when sorting the home screen apps.

Has anyone an idea how I can implement this feature?

Thank you so much!

Amplexor