Android View坐标系详解:getX,getY,getLocationScreen,getLocationWindow,...
View提供了如下5种方法获取View的坐标:View.getTop()、View.getLeft()、View.getBottom()、View.getRight();View.getX()、View.getY();View.getTranslationX()、View.getTranslationY();View.getLocationOnScreen(int[]position);View.