title: Load image in Compound Drawable From URL
body: <p>I have a <code>listview</code> with <code>CompoundDrawable</code>, the images in the compound <code>drawable</code> need to be loaded from the web.
   How can i load images to <code>CompoundDrawable</code> from the URL.
  i think that i can get bitmap image from the URL convert it into Drawable and then load it into the CompoundDrawable. like this</p>
  
  <pre><code>public static Drawable drawableFromUrl(String url) throws IOException {
      Bitmap x;
  
      HttpURLConnection connection = (HttpURLConnection) new URL(url).openConnection();
      connection.connect();
      InputStream input = connection.getInputStream();
  
      x = BitmapFactory.decodeStream(input);
      return new BitmapDrawable(x);
  }
  </code></pre>
  
  <p>is there a better way to do it? can i do it directly without geting bitmap from URL and then converting bitmap to drawable?</p>