-
Notifications
You must be signed in to change notification settings - Fork 147
Can't implement onClick() in child views when onTouch() (swiping) is enabled #34
Comments
Hei, have you also tried the solution from https://github.com/timroes/EnhancedListView/wiki#wiki-troubleshooting ? |
No. The problem I'm having is that if I setOnClickListener() for a David S Alderson On Mon, Feb 10, 2014 at 2:27 PM, Tim Roes notifications@github.com wrote:
|
"No" like, you haven't tried, or "no" like you tried it and it doesn't work? |
Sorry, I worded that badly. I have tried the solution and it's not working I'm having the opposite problem. I'm getting clicks within the list item Thanks, Dave
|
Just fyi... android:descendantFocusability="blockDescendants" should have an "s" at the end of "block" and should be android:descendantFocusability="blocksDescendants" David S Alderson On Tue, Feb 11, 2014 at 12:29 AM, Tim Roes notifications@github.com wrote:
|
android:descendantFocusability="blocksDescendants" didn't work for me either - nexus 4, android 4.4 |
I also encounter the same problem, any solutions here? |
sameproblem |
Clicks are not detected in child views of EhancedListView (at least I couldn't get it to work consistently). Here's what I put into the EhancedListView's onTouchEvent():
This works on my Droid Maxx, 4.2.2. Still have to test it on other devices. I'd like to know if you see any problems with it. Thanks! --Dave A
Edit: for the above, a AdapterView.OnItemClickListener() needs to be added to the child view that has it's callOnClick() method called.
The text was updated successfully, but these errors were encountered: