wdullaer / SwipeActionAdapter

The Mailbox-like Swipe gesture library for Android
Apache License 2.0
213 stars 61 forks source link

EditText dont work #21

Open dub123 opened 9 years ago

dub123 commented 9 years ago

Hi, Thanks for this adapter. I am using a custom adapter in my project that has autocompletetextbox, edittext and few spinners. As soon as I add this adapter autocomplete and edittext dont work. I can't click on them and change values. looks like listeners aren't responding properly. May be its how its designed. Please suggest.

wdullaer commented 9 years ago

I'm blocking descendant focus to make the onItemClickListener of the ListView work.

This is a rather heavy handed solution with drawbacks, but I couldn't find a proper solution so far. At this point in time I think it's the better trade-off, but I'm trying to come up with a better solution.

wdullaer commented 9 years ago

Looks like this is a bug in Android itself: you can't have onItemClicked and an EditText work at the same time in a ListView. The bug has also been declined, so they won't be fixing it. https://code.google.com/p/android/issues/detail?id=3414#c27