Own defined Layout , onDraw() method not getting called January 17, 2023 by Tarik Solved. Add this.setWillNotDraw(false); in constructor