map1.put("image",R.drawable.jiantou);
我在listview中添加图像时,引用图像的地址,如上所示,但提示错误The method put(String, String) in the type HashMap is not applicable for the
arguments (String, int)
但我看别人的代码都可以直接引用图像地址的,请大神帮忙解决一下,谢啦!!

android开发中listview添加图片
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
1条回答 默认 最新
- JaveZh 2013-07-23 09:51关注
Map<String,Object> map =new HashMap<String,Object>();
你定义的map的第二个参数应该改成Object,你现在的应该是String
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报