Custom onDraw() method not called April 26, 2023 by Tarik Add setWillNotDraw(false) in MyDrawableView constructor. Original answer is here.