在ViewGroup中ondraw总是不执行,或者说不被调用.
原因:if a ViewGroup background is null ,the funtion "ondraw" will not be call., but the "dispatchDraw" always will be call.
结论出处:
-
Parameters:
- canvas the canvas on which the background will be drawn
在ViewGroup中ondraw总是不执行,或者说不被调用.
原因:if a ViewGroup background is null ,the funtion "ondraw" will not be call., but the "dispatchDraw" always will be call.
结论出处: