title: how do I transform a string of url's into drawable?
body: <p>I currently have an arraylist as follows:</p>
  
  <pre><code>private void loadImages() {
          images = new ArrayList&lt;&gt;();
  
          images.add(getResources().getDrawable(R.drawable.imag1));
          images.add(getResources().getDrawable(R.drawable.imag2));
          images.add(getResources().getDrawable(R.drawable.imag3));
  }
  </code></pre>
  
  <p>I want to be able to convert a url into these drawables such that:</p>
  
  <pre><code> drawable1 = "http.someimage.com/image.png"
   drawable2 = "http.someimage.com/newimage.png"
  </code></pre>
  
  <p>followed by </p>
  
  <pre><code>private void loadImages() {
              images = new ArrayList&lt;&gt;();
  
              images.add(getResources().getDrawable(drawable1));
              images.add(getResources().getDrawable(drawable2));
  ...etc    }
  </code></pre>
  
  <p>Is there any easy way to go around this? I definitely want to stick to drawables ,but I cant find any way to convert a url to drawable
  Any ideas? Thanks!</p>