I have a listView. In that listView i have implemented onTouchListener. Every things work fine, but when list is Scrolling , on tapping on the list , the list should stop(like normal android listView).No action can be done while scrolling like stopping the scroll.This happen because of the onTouchListener. I am returning false from onTouchListener. I don’t know why this behavior happens?Can any one help.
I have a listView. In that listView i have implemented onTouchListener. Every things work
Share
try returning
super.onTouchListener, ortrue, when you don’t want to consume the event (i’m thinking you implemented gestures). returning false means you’re discarding the TouchEvent, and you don’t want to do that if you want to stop the scroll.