Limiting onTouch ACTION_MOVE to one View
<p>I'm implementing an app that uses part of the screen as a touchpad for the user to manipulate a mechanical device. I want to limit the touchpad behavior to only that <code>View</code>. </p>

<p>But if the user puts his finger down <strong>inside</strong> that <code>View</code> and moves it <strong>outside</strong> the <code>View</code>  in my <code>onTouch()</code> <code>Handler</code> I continue to get <code>ACTION_MOVE</code> events when the user is dragging outside the <code>View</code>.</p>

<p>And the <code>View</code> ID passed-in to <code>onTouch()</code> is still that of the original <code>View</code> even though the events are coming from outside that <code>View's</code> bounds!</p>

<p>Why does it do this and how can I constrain events to only within the bounds of that one <code>View</code>?</p>

<p>Thanks in advance.</p>
