You may want to use these for absolute coordinates (absolute, regarding the screen of the device):
MotionEvent.getRawX()
MotionEvent.getRawY()
The other methods, getX()
and getY()
, should return you coordinates relative to the View
that dispatched them.