val location = IntArray(2) it.getLocationOnScreen(location) val x = location[0] val y = location[1] Log.d("TAG", "getLocationOnScreen x = $x ; y = $y")
it.getLocationInWindow(location) val x1 = location[0] val y2 = location[1] LogUtil.d("TAG", "getLocationInWindow x1 = $x1 ; y2 = $y2")