I have a ListView with a custom layout for children.
Without snapping to OnClickListener elements, each element is highlighted beautifully when the user touches it, but as soon as I attach the listener, the animation disappears. The listener works, but then there is no animation or visual feedback. The same problem occurs when I use OnTouchListener.
What can I do to capture an onClick event, but still has a default animation?
source
share