title: How to set VectorDrawable as an image for ImageView programmatically
body: <p>I want to set some <strong>vectorDrawables</strong> to a <strong>ImageView</strong> in Android Studio.</p>
  
  <p>I can set png and jpg drawable easily but when i want to set VectorDrawable, it does not work on imageview.</p>
  
  <pre><code>img.setImageResource(R.drawable.ic_home);
  </code></pre>
  
  <p>ic_home is VectorDrawable and this code doesn't work.</p>