PagedDragDropGrid icon indicating copy to clipboard operation
PagedDragDropGrid copied to clipboard

long click on item android 4.4

Open emredurmuss opened this issue 11 years ago • 13 comments

When i long click on item after updating my phone to kitkat, the clicked item is going to the end of the list. What should I do to fix that?

emredurmuss avatar Nov 24 '13 11:11 emredurmuss

Also happening to me. Does anyone know how to solve this? It would be nice to know if someone already fixed it before trying myself.

ghost avatar Dec 04 '13 17:12 ghost

it also happening to me. when i debug it. i found the method getDraggedView in DragDropGrid Useing ChildView at (getChildCount-2) not dragged position. but if i use getChildAt(dragged).it make some othen errors and crashed.
private View getDraggedView() { return getChildAt(getChildCount()-2); // return getChildAt(dragged); }

X3Daniel avatar Dec 28 '13 14:12 X3Daniel

Could anybody solve the issue?

emredurmuss avatar Jan 08 '14 15:01 emredurmuss

The problem is the change in View.bringToFront() in KitKat ( http://developer.android.com/reference/android/view/View.html#bringToFront%28%29 ). With this change it is not necessary to call invalidate() to change view children order anymore. Since this library was relying in children order, with this change it breaks.

I have a working version were I keep the order in a List, but I still need to test it a bit more, fix a couple of bugs, and make the code way prettier.

ghost avatar Jan 09 '14 12:01 ghost

If you fix it, issue a pull request and i will merge it.

thanks

mrKlar avatar Jan 11 '14 15:01 mrKlar

Hi anlosar, can you share your fix please? Thanks ;)

venator85 avatar Feb 04 '14 09:02 venator85

Sorry, but I discovered my version crashes when removing views and didn't have time to solve it (I was a couple of evenings dealing with it but no success). I'll try to fix this asap, but, you know, time is never enough :)

ghost avatar Feb 04 '14 13:02 ghost

Hi, I am currently not using view removal, so could you please share it anyway? If you want, you can send it privately at [email protected]. Thanks ;)

venator85 avatar Feb 04 '14 13:02 venator85

I sent you an email with the code. If you fix that issue, please tell us and upload it. Thanks

ghost avatar Feb 04 '14 17:02 ghost

Hi anlosar. Please share your working version to me. I want to solution. If you can, please send at [email protected].

kysu0906 avatar Feb 06 '14 02:02 kysu0906

Sent.

ghost avatar Feb 06 '14 10:02 ghost

Hi anlosar,

one more, please ;) [email protected]

Thank you!

komaxx avatar Feb 25 '14 16:02 komaxx

hi @anlosar when long click item in kit kat wrong please your fix mail for me [email protected] thank you

fatemeh2sh avatar Sep 15 '14 06:09 fatemeh2sh