Own defined Layout , onDraw() method not getting called

Solution 1:

Solved. Add this.setWillNotDraw(false); in constructor