I am trying to implement a drag and drop in a ListView
in android(Ice Cream Sandwich). So when the dragged object reaches the edge of the ListView
, I am scrolling the ListView
in the relevant direction. The problem is that when we scroll, sometimes the adapter creates new View
s as necessary and these 'new' View
s did not receive the ACTION_DRAG_STARTED
event earlier and hence do not receive the DragEvent
updates. Is there any way I can send the events to these views as well?
An easiest way to implement drag and drop in listview is you use this great library. https://github.com/commonsguy/cwac-touchlist it's worth trying.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With