posted 14 years ago
Zoheb when we create our own View, we can override this method to know the size of our View i.e. the area in which its being displayed. When our view is first initialized, the constructor is called but at that time you don't know the area available to your view. This method is called before the onDraw method so that you know how much area is available to your view so that you can draw everything in that area...