Drawing drawable in canvas doesn't work
<p>I want to draw a drawable on canvas with this code but it doesn't work and i don't know why</p>

<pre><code>getResources().getDrawable(R.drawable.allergist).draw(canvas);
</code></pre>

<p>I set my custom views heigh and width to match parent but whole screen is white and there is no drawable on screen</p>