获取屏幕的中心x,y坐标,代码如下:
Display display = getWindowManager().getDefaultDisplay();
final Point size = new Point();
display.getSize(size);
height = size.y;
float centerY=height/2;//i expect this is the y coordinate of center
但是没有反应。
SomeImageView.setY(centerY);
没看到屏幕的中心坐标在哪儿。