问题0021 - 坐标 android坐标系统

154 阅读1分钟

文章

摘要

  • getLocationOnScreen(@Size(2) int[] outLocation)
    • Computes the coordinates of this view on the screen.
    • outLocation[0]: view左上角相对屏幕左上角的X坐标
    • outLocation[1]: view左上角相对屏幕左上角的Y坐标