第一種: Point outSize = new Point(); getWindowManager().getDefaultDisplay().getRealSize(outSize); int x = out