I am wondering what is the origin point, i.e. (0, 0) coordinates in MotionEvent when you tap or move around the screen in Android? I know that getRawX () and getRawY () get common screen coordinates. But I would like to know the starting point for getX () and getY ().
Is it based on the absolute top left corner of the view that works onTouchEvent (MotionEvent e)? Or is it in the upper left corner of the content in the view? those. absolute left corner of the view plus getPaddingLeft () at the x coordinate and getPaddingTop () at y.
Or is it based on some other point together?
source share