int[] location = new int[2]; View.getLocationOnScreen(location); int x = location[0]; int y = location[1];