android MotionEvent获得当前位置

event.getY()与event.getX()为当前触摸位置距离当前元素顶端和左端的距离;

event.getRowY()与event.getRowX()为当前触摸位置距离当前屏幕顶端和左端的距离;

//===========

getTop()与getLeft()为当前元素顶端和左端距离父元素顶端和左端的距离;

原文地址:https://www.cnblogs.com/zzq-include/p/5655625.html