title: How to apply vector drawable to an image programmatically?
body: <p>I have a bunch of SVG images(5) that I've converted to vector drawables in Android Studio. 
  I need to hardcode them in my adapter but I can't figure out how to apply.</p>
  
  <p>Using a regular image(a .png or jpg) this is how I would put them in an array.</p>
  
  <pre><code>int[] images = {R.drawable.image_one.png,R.drawable.image_two.png};
  </code></pre>
  
  <p>and apply to the image like below:</p>
  
  <pre><code>imageView.setImageResource(images[position]);
  </code></pre>
  
  <p>how can I achieve the same with vector drawables(the extension file ends with .xml)</p>