Extended SurfaceView’s onDraw() method never called

Found it on the android-developers Google group. You simply have to add :

setWillNotDraw(false)

To the constructor. Now if someone could explain me why, that would be greatly appreciated.

Leave a Comment