The view's size is assigned when view.onSizeChanged is called with
oldw = oldh = 0.
Assuming your view is visible, its size has been assigned by the time
the activity's window receives focus. That is, when
activity.onWindowFocusChanged is called with hasFocus = true.
The sequence is roughly:
view.onSizeChanged(width, height, 0, 0)