When I long click on an item, then drop it immediately, it performs an onClick event. In one way or another this might be a bug? I have managed to fix this by changing the return value of DragDropGrid#onTouch(View, MotionEvent), instead returning false directly I changed it with super.onThouchEvent(MotionEvent)
I also noticed that when I will long click on an item near (using the emulator my mouse pointer is about 5-10dip near) the delete view (not intersected with the delete view), then drop it, the item will disappear. I have also managed to fix it by calling the touchMove(event); on the first line of DragDropGrid#touchUp(MotionEvent) method.
I don't know if my fixes were correct, but it managed to fix my issues.
When I long click on an item, then drop it immediately, it performs an onClick event. In one way or another this might be a bug? I have managed to fix this by changing the return value of
DragDropGrid#onTouch(View, MotionEvent)
, instead returning false directly I changed it withsuper.onThouchEvent(MotionEvent)
I also noticed that when I will long click on an item near (using the emulator my mouse pointer is about 5-10dip near) the delete view (not intersected with the delete view), then drop it, the item will disappear. I have also managed to fix it by calling the
touchMove(event);
on the first line ofDragDropGrid#touchUp(MotionEvent)
method.I don't know if my fixes were correct, but it managed to fix my issues.