Skip to content
This repository has been archived by the owner on Jan 15, 2022. It is now read-only.

long click on item android 4.4 #41

Open
emredurmuss opened this issue Nov 24, 2013 · 13 comments
Open

long click on item android 4.4 #41

emredurmuss opened this issue Nov 24, 2013 · 13 comments
Labels

Comments

@emredurmuss
Copy link

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?

@ghost
Copy link

ghost commented Dec 4, 2013

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.

@X3Daniel
Copy link

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);
}

@emredurmuss
Copy link
Author

Could anybody solve the issue?

@ghost
Copy link

ghost commented Jan 9, 2014

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.

@mrKlar
Copy link
Owner

mrKlar commented Jan 11, 2014

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

thanks

@venator85
Copy link

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

@ghost
Copy link

ghost commented Feb 4, 2014

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 :)

@venator85
Copy link

Hi, I am currently not using view removal, so could you please share it anyway? If you want, you can send it privately at venator85@gmail.com.
Thanks ;)

@ghost
Copy link

ghost commented Feb 4, 2014

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

@kysu0906
Copy link

kysu0906 commented Feb 6, 2014

Hi anlosar.
Please share your working version to me.
I want to solution.
If you can, please send at kysu0906@gmail.com.

@ghost
Copy link

ghost commented Feb 6, 2014

Sent.

@komaxx
Copy link

komaxx commented Feb 25, 2014

Hi anlosar,

one more, please ;)
github@poroba.com

Thank you!

@ghost ghost mentioned this issue Mar 6, 2014
mrKlar pushed a commit that referenced this issue Mar 6, 2014
@fatemeh2sh
Copy link

hi @anlosar when long click item in kit kat wrong please your fix mail for me z.sharif.sh@gmail.com thank you

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

7 participants