Android - how to detect a touch on screen is a "scroll" touch?
<p>I am creating an android app in Java in which I have a lot of <code>&lt;TextView&gt;</code> around the screen, all of them with onTouchListeners defined.  They are wrapped in a <code>&lt;ScrollView&gt;</code> because they occupy more space than available in the screen.</p>

<p>My problem is: when I scroll the app, up/down, by touching at the screen and moving my finger up/down, the scroll works as expected but the onTouchListener of the touched <code>&lt;TextView&gt;</code> is also fired (which is probably expected as well) - I don't want that to happen though. I want the onTouchListener to be ignored when I'm touching the screen to scroll it.</p>

<p>How can I accomplish this? I don't want my function to run when the user is scrolling and "accidentally" fires the onTouchListener on a certain <code>&lt;TextView&gt;</code>.</p>