Hello. I inherit the View class, i.e. I am writing my own custom View. To render everything that is necessary in Canvas of my heir to the View class, you need to know the size of my View specified by markup / code.
The getWidth () and getHeight () methods from any place in the class code return 0 ..
Hence the question of how and when to get the real size of the View? And a question to follow: what is the full life cycle of the object heir to View (following the example of Activity - in all the books on Android and articles on the Internet is a diagram with the order of calling callback methods)?