globalOffset() 只要該視圖沒有被遮擋菇曲,targetView.getLocalVisibleRect()的坐標(biāo)總是等于: (0, 0, targetView.getwidth(), targetView.getheight()) https://www.cnblogs.com/ai-developers/p/4413585.html