View.java
/**
* 可以获取View在Screen上的坐标位置
* Computes the coordinates of this view onthe screen. The argument
* must be an array of two integers. After the method returns, the array
* containsthe x and y location inthat order.
*
* @param location an array of two integers in which to hold the coordinates
*/
public void getLocationOnScreen(int[] location)
/**
* 可以获取View在其所在Window内的坐标位置
* Computes the coordinates of this view inits window. The argument
* must be an array of two integers. After the method returns, the array
* containsthe x and y location inthat order.
*
* @param location an array of two integers in which to hold the coordinates
*/
public void getLocationInWindow(int[] location)