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
Just add a method to your custom view that you call when onSizeChanged takes place in the Activity. Pass the new values to the view as parameters of the called method. Then execute whatever operations need to take place when your custom view changes size.