DragSortAdapter icon indicating copy to clipboard operation
DragSortAdapter copied to clipboard

Dragged item blips when releasing

Open mpost opened this issue 10 years ago • 6 comments

Picking an item up works as expected but when releasing the drag gesture there is a split second where the dragged item is gone and the new item has not yet appeared. I would hope that it is possible to not have that minor delay between releasing the dragged item and the appearance of the new item.

Otherwise... great library. :)

mpost avatar Feb 22 '15 14:02 mpost

Hm... where is this delay? Is it visible on the sample app too? I think ideally I'd like the view to animate from the floating position to the new position, not sure how if there's a simple solution for that though.

vinc3m1 avatar Mar 03 '15 20:03 vinc3m1

I haven't tried the sample app. Seeing that on a nexus 6 with a horizontal recylcerview. I'll see if I can come up with some more insights.

Btw... Love the library in general. Has the right ratio of feature to manual labor to be more flexible than other approaches. I use it in combination with a long press to reorder, custom item types, support for swipe to dismiss and custom item animator. Works well together.

mpost avatar Mar 03 '15 22:03 mpost

You can observe this in the sample app:

screencast

iPaulPro avatar Jun 11 '15 15:06 iPaulPro

@vinc3m1 a barebones implementation of drag-and-drop will animate it to the new position just fine, are you doing anything special to make it animate in otherwise?

(See here for a barebones example)

ZacSweers avatar Jun 26 '15 08:06 ZacSweers

@hzsweers This library uses the old drag and drop methods (View.OnDragListener). It was one of the motivators for me to write that article.

iPaulPro avatar Jun 26 '15 12:06 iPaulPro

I see, thanks for the heads up! On Fri, Jun 26, 2015 at 5:03 AM Paul Burke [email protected] wrote:

@hzsweers https://github.com/hzsweers This library uses the old drag and drop methods (View.OnDragListener). It was one of the motivators for me to write that article.

— Reply to this email directly or view it on GitHub https://github.com/vinc3m1/DragSortAdapter/issues/5#issuecomment-115656288 .

ZacSweers avatar Jun 26 '15 18:06 ZacSweers