globalOffset() 只要该视图没有被遮挡,targetView.getLocalVisibleRect()的坐标总是等于: (0, 0, targetView.getwidth(), targetView.getheight()) https://www.cnblogs.com/ai-developers/p/4413585.html