先从网络下载图片 然后通过适配器设置到listView上

解决方案 »

  1.   

    Bitmap bitmap = getBitmapFromUrl(IMG_URL);
    再用imageview.setbitmap(bitmap)就读取了
      

  2.   

    /**
     * 通过URL获得网上图片。如:http://www.xxxxxx.com/xx.jpg
     * */
    public Bitmap getBitmap(String url, int displaypixels, Boolean isBig)
    throws MalformedURLException, IOException {
    Bitmap bmp = null;
    BitmapFactory.Options opts = new BitmapFactory.Options(); InputStream stream = new URL(url).openStream();
    byte[] bytes = getBytes(stream);
    // 这3句是处理图片溢出的begin( 如果不需要处理溢出直接 opts.inSampleSize=1;)
    opts.inJustDecodeBounds = true;
    BitmapFactory.decodeByteArray(bytes, 0, bytes.length, opts);
    opts.inSampleSize = computeSampleSize(opts, -1, displaypixels);
    // end
    opts.inJustDecodeBounds = false;
    bmp = BitmapFactory.decodeByteArray(bytes, 0, bytes.length, opts);
    return bmp ; }剩下的就很简单了
      

  3.   

    网上有个AsyncImageLoader类的代码,可以使用这个实现。
      

  4.   

    官方实例:http://developer.android.com/training/displaying-bitmaps/index.html