When customizing View, the onDraw() method is not called

In fact, this is not a problem. It is a mistake when I wrote it. When initializing the custom View, I did not use findViewById(), but used the method of new View object.

Guess you like

Origin blog.csdn.net/HJ_CQ/article/details/102631260