Update 坐标系.md
This commit is contained in:
@@ -16,14 +16,14 @@
|
||||
#### 注意:View的坐标系统是相对于父控件而言的
|
||||
|
||||
``` java
|
||||
getTop(); //获取子View顶部距父View顶部的距离
|
||||
getBottom(); //获取子View底部距父View底部的距离
|
||||
getLeft(); //获取子View左侧距父View做的是距离
|
||||
getRight(); //获取子View右侧距父View右侧的距离
|
||||
getTop(); //获取子View左上角距父View顶部的距离
|
||||
getLeft(); //获取子View左上角距父View左侧的距离
|
||||
getBottom(); //获取子View右下角距父View顶部的距离
|
||||
getRight(); //获取子View右下角距父View左侧的距离
|
||||
```
|
||||
具体可如下图所示:
|
||||
|
||||

|
||||

|
||||
|
||||
### MotionEvent中 getRowX() 和 getX() 的区别
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user