Skip to content

Commit 7b1c69e

Browse files
committed
魔法-创生
1 parent 800572d commit 7b1c69e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# 获取View在屏幕上位置
2+
3+
4+
5+
| 方法 | 概述 |
6+
| -------------------- | ---------------------------------------- |
7+
| getLocalVisibleRect | 返回一个Rect对象, View的大小,left,top都是0 |
8+
| getGlobalVisibleRect | 获取全局坐标系的一个视图区域, 返回一个Rect对象;该Rect是基于整个屏幕的 |
9+
| getLocationOnScreen | 获取在当前屏幕内的绝对坐标 |
10+

0 commit comments

Comments
 (0)