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 View
.
But if the user puts his finger down inside that View
and moves it outside the View
in my onTouch()
Handler
I continue to get ACTION_MOVE
events when the user is dragging outside the View
.
And the View
ID passed-in to onTouch()
is still that of the original View
even though the events are coming from outside that View's
bounds!
Why does it do this and how can I constrain events to only within the bounds of that one View
?
Thanks in advance.