@Override
public void onWindowFocusChanged(boolean hasFocus) {
// TODO Auto-generated method stub
super.onWindowFocusChanged(hasFocus);
getWindow().findViewById(Window.ID_ANDROID_CONTENT);
Display display = getWindowManager().getDefaultDisplay();
//屏幕高度
int height = display.getHeight();
Rect frame = new Rect();
getWindow().getDecorView().getWindowVisibleDisplayFrame(frame);
// 状态栏高度
int statusBarHeight = frame.top;
}