Android - 坐标系

闷骚的程序员

View 与 MotionEvent 的主要坐标系参考值:

View Position

x、y 和 translationX、translationY 是对于移动过程有用的概念。

  1. x = left + translationX

  2. y = top + translationY

文档信息

Search

    Table of Contents