1、Android坐标系是从坐上角开始的
2、look down:
3、View获取位置坐标的方法:
getLocationInWindow(int [])---获取相对于屏幕的坐标
getTop---获取自己顶边到parent顶边的距离
getLeft---获取自己left到parent的left的距离
getBottom---获取自己bottom到parent的顶边的距离
getRight---获取自己右边到parent的左边的距离
4、motionEvent获取位置坐标的方法:
getX ——获取点击点距离自己(当前View)的左边的距离
getY——获取点击点距离自己的顶端的距离
getRawX——获取点击点在屏幕中的X坐标
getRawY——获取点击点在屏幕中的Y坐标