經安全檢測,此網站為安全網站,請放心前往原始網址!

Custom Drawing | Android Developers

The parameter to onDraw() is a Canvas object that the view can use to draw itself . ... In order to properly draw your custom view, you need to know what size it is.

developer.android.com

網址安全性掃描由 google 提供