Closed semsamot closed 9 years ago
I just had the same issue. onItemClick
fires even though you handle onLongItemClick
.
had same issue with me but i solve this ref http://stackoverflow.com/a/27378010/2685454
I have fix the bug, and pull request: https://github.com/balysv/material-ripple/pull/20
Fix in 2b853c371411845beb5f2f9624b2c5c784800025
Hi,
At first, thank you for the awesome library! I tried it in a ListView with setting
app:rippleInAdapter="true"
, When I long click on an item in the list, the listener correctly called but immediately after releasing touch (MotionEvent.ACTION_UP
) theonItemClick
method ofOnItemClickListener
get called! even if returningtrue
inonItemLongClick
method!I've tested it with a normal
FrameLayout
and it hasn't any problem...I suggest you forget about LongClick in your click handling mechanism for the layout...