API 1
@Override
public void onWindowFocusChanged(boolean hasFocus) {
// TODO Auto-generated method stub
super.onWindowFocusChanged(hasFocus);
}
Called when the current Window
of the activity gains or loses focus. This is the best indicator of whether this activity is visible to the user
当hasFocus == true,表示加载完成
本函数调用点在Actvity整个页面加载完成时被调用。
如果想要获取某个View的高度,可以在这里获得,别的地方有可能会调用过早导致获取不到实际的大小