I want to use getWidth()/getHeight() to get width/height of my XML-Layout. I read I have to do it in the method onSizeChanged() otherwise I will get 0 ( Android: Get the scr
I had a similar problem (ie. calculating View sizes in an Activity after it was finished drawing).
View
Activity
I overrode the Activity method : public void onWindowFocusChanged(boolean hasFocus) and it worked fine.
public void onWindowFocusChanged(boolean hasFocus)