cannot scale images pulled from web
<p>Sorry for the newbie question, hope someone can put me on the right track...</p>

<p>As a learning exercise, I am trying to build an app which pulls in images from the web (comic strips).</p>

<p>My layout contains 3 HorizontalScrollViews, within each is an ImageView.
In the layout I set the ImageView height to match_parent</p>

<p>When the images are local, everything works fine. The images are scaled to the height of the HorizontalScrollView container. I can scroll the images left/right to see the whole image.</p>

<p>When I pull the same images from the web they are visible but they do not scale to the container.</p>

<p>Any ideas please?</p>

<pre><code>// url = url of image

  //grab image to display
    try {
        imgView2.setImageDrawable(grabImageFromUrl(url));

    } catch (Exception e) {
        txterror.setText("Image not found");
    }
}

    private Drawable grabImageFromUrl(String url) throws Exception {
            return Drawable.createFromStream((InputStream)new URL(url).getContent(),         "src");
        }
</code></pre>
