本帖最后由 zhong1113 于 2014-11-14 17:06:16 编辑

解决方案 »

  1.   

    你既然得到文件的路径了,就可以通过BitmapFactory的decodeFile方法获取Bitmap了public static Bitmap decodeFile (String pathName)Added in API level 1
    Decode a file path into a bitmap. If the specified file name is null, or cannot be decoded into a bitmap, the function returns null.
      

  2.   

    你既然获取到了路径,那就通过网络或者磁盘访问那个路径啊,然后加载成为bitmap不就ok了?
      

  3.   

    private String imageView;// 图片路径 holder.iv.setImageBitmap(BitmapFactory.decodeFile(activity.getImageView()));图片没加载出来啊
      

  4.   

    你看好你的 imageView 的路径, demo/test_a1,但是很明显你这个路径不是绝对路径啊,你先问清楚图片的存放位置,使用绝对路径加载吧
      

  5.   

    你的xml仅仅是带了一个相对路径而已,跟图片完全不相关。你既然需要图片则需要通过服务器另外的一个方法来下载其路径指定的图片,才能够显示。
      

  6.   

    按照你的描述,你的图片访问地址是http://192.168.6.121:8080/demo/test_a1(图片没有后缀名?测试的方式是把这个url复制到浏览器中,看图片能不能显示。有后缀名的话应该加上,.jpg .png之类的)对应到你的程序中应该是 "http://192.168.6.121:8080/"+activity.getImageView()
     
          holder.iv.setImageBitmap(BitmapFactory.decodeFile( "http://192.168.6.121:8080/"+activity.getImageView().replace("\","/")));
     你试下。