GETROWX: The coordinates of the touch point relative to the screen
GetX: The coordinates of the touch point relative to the button
GetTop: The y-coordinate of the upper-left corner of the button relative to the parent view (linerlayout)
GetLeft: The x-coordinate of the upper-left corner of the button relative to the parent view (linerlayout)
GetRight (): equivalent to the following calculation: GetLeft () +getwidth ().
When you touch the button, x, Y is relative to the upper-left point of the button. And Rawx,rawy is always relative to the screen position
GetX () and gety () always get the touch position coordinates of the view (these two values do not exceed the length and width of the view)
GetX can't say it's relative to the button's coordinates. If it's btn.setontouchlistener here, it's relative to the button.
If you have inherited the GridView in this case, drag item is not relative to item's coordinates, but relative to GridView